Next.js Discord

Discord Forum

create next app failling on npm install

Unanswered
x a x a posted this in #help-forum
Open in Discord
So, I tried to do the first command on the guide that creates the project and although the directory was created it gives this error when it tries to do npm install

npm install
npm ERR! code 7
npm ERR! path /home/xaxa/code/nextjs-dashboard/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build

my node version: v18.18.0
my npm version: 9.8.1

10 Replies

Delete node_modules and try running the command again
It does'nt even create the node_modules package
I've installed the node_modules without the bcrypt now but then I keep getting the same error when I try to install bcrypt
Toyger
sudo apt-get install libssl-dev libcurl4-openssl-dev curl libcurl3 libgcrypt-dev libkrb5-dev
Same error
Toyger
try also
apt install build-essential
which is gcc,make,libc-dev
It says that I already have the latest version and give me the same error when I try to install bcrypt
done that too
same error