Home > Back-end >  npm Install error- node modules but no package-lock.json
npm Install error- node modules but no package-lock.json

Time:02-11

I'm getting an error with my npm install and would love some help/advice.

ELIFECYCLE
ENOENT
spawn bash
[email protected] install `node bin/install.js`
spawn bash ENOENT
Failed at the [email protected] install script
This is probably not a problem with npm. There is likely additional logging output above.

My node path is set in my environmental variables. My node version is 10.24.1 and npm version is 6.4.1 I am using nvm for windows to manage versions. Whenever I run npm install I get this error, and node modules is created, but package-lock is not. I have deleted node modules and ran npm cache clear with no success.

Any tips appreciated!

CodePudding user response:

Try and run the following command.

npm install --registry=https://registry.npm.taobao.org

If that doesn't work, see the following Issues page on GitHub.

[email protected] error

EDIT: Just noticed, you should update your Node.js version. It is on v10 and the current LTS version (at the time posted) is v16. This is just a suggestion, although it might solve your issue.

CodePudding user response:

This solved it for me!

npm config delete script-shell

Source: https://stackoverflow.com/a/46006249/15787997

  • Related