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.
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