create next app failling on npm install
Unanswered
x a x a posted this in #help-forum
x a x aOP
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
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
x a x aOP
It does'nt even create the node_modules package
x a x aOP
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
x a x aOP
Same error
Toyger
try also
which is gcc,make,libc-dev
apt install build-essential which is gcc,make,libc-dev
x a x aOP
It says that I already have the latest version and give me the same error when I try to install bcrypt
@x a x a It says that I already have the latest version and give me the same error when I try to install bcrypt
Toyger
try to reinstall nodejs
x a x aOP
done that too
same error