Creating a new project error
Answered
Western thatching ant posted this in #help-forum
Western thatching antOP
I want to install it Create a new project in learn nextjs https://nextjs.org/learn/dashboard-app/getting-started at the build point, with the command npx create-next-app@latest nextjs-dashboard --use-npm - - example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" on my linux but this error appears, what should I do..? my node js version is 18.20 , what's wrong
Downloading files from the repo https://github.com/vercel/next-learning/tree/utama/dasbor/sample-pemula. This may take a while.
Installing packages. This may take a few minutes.
npm ERR! code 7
npm ERR! path /media/mylinux/66c58b17-30c8-4542-afa3-c928b69b6313/jackylinux/Dev/Github/NextJsFolder/nextjs-dashboard/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! The complete log of this process can be found at: /home/mylinux/.npm/_logs/2024-04-02T09_03_11_615Z-debug-0.log
Cancel installation.
npm installation failed.
Can you help me ..? Help
Downloading files from the repo https://github.com/vercel/next-learning/tree/utama/dasbor/sample-pemula. This may take a while.
Installing packages. This may take a few minutes.
npm ERR! code 7
npm ERR! path /media/mylinux/66c58b17-30c8-4542-afa3-c928b69b6313/jackylinux/Dev/Github/NextJsFolder/nextjs-dashboard/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! The complete log of this process can be found at: /home/mylinux/.npm/_logs/2024-04-02T09_03_11_615Z-debug-0.log
Cancel installation.
npm installation failed.
Can you help me ..? Help
Answered by Ray
https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#linux
look like it has issue installing bcrypt, make sure you have require package installed on your OS
look like it has issue installing bcrypt, make sure you have require package installed on your OS
6 Replies
@Western thatching ant I want to install it Create a new project in learn nextjs https://nextjs.org/learn/dashboard-app/getting-started at the build point, with the command npx create-next-app@latest nextjs-dashboard --use-npm - - example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" on my linux but this error appears, what should I do..? my node js version is 18.20 , what's wrong
Downloading files from the repo https://github.com/vercel/next-learning/tree/utama/dasbor/sample-pemula. This may take a while.
Installing packages. This may take a few minutes.
npm ERR! code 7
npm ERR! path /media/mylinux/66c58b17-30c8-4542-afa3-c928b69b6313/jackylinux/Dev/Github/NextJsFolder/nextjs-dashboard/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! The complete log of this process can be found at: /home/mylinux/.npm/_logs/2024-04-02T09_03_11_615Z-debug-0.log
Cancel installation.
npm installation failed.
Can you help me ..? Help
https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions#linux
look like it has issue installing bcrypt, make sure you have require package installed on your OS
look like it has issue installing bcrypt, make sure you have require package installed on your OS
Answer
Western thatching antOP
is there any other way ..? because I have followed but still can't
@Western thatching ant is there any other way ..? because I have followed but still can't
what error are you getting now?
Western thatching antOP
the error that appeared in the command sudo apt-get install -y build-essential python "Python no candidate installation, but because I was frustrated and I deleted my node with the new version and now the problem that appeared is gone and the installation was successful, thanks for your help sir
thanks you sirr