Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install failed at the nodemon@1.18.9 postinstall script #31

Open
lenikhilsingh opened this issue Dec 16, 2018 · 1 comment
Open

Comments

@lenikhilsingh
Copy link

the commands 'npm install' gives me the following error:

` > nodemon@1.18.9 postinstall C:\Users\Nikhil\Music\tab-tracker\server\node_modules\nodemon
> node bin/postinstall || exit 0

npm WARN server@1.0.0 No description
npm WARN server@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! file bashcls
npm ERR! path bashcls
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bashcls
npm ERR! nodemon@1.18.9 postinstall: `node bin/postinstall || exit 0`
npm ERR! spawn bashcls ENOENT
npm ERR!
npm ERR! Failed at the nodemon@1.18.9 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Nikhil\AppData\Roaming\npm-cache\_logs\2018-12-16T19_09_40_364Z-debug.log

`
As can be seen from the error messages, npm install fails at nodemon@1.18.9 postinstall script.
I've tried things like, deleting the node_modules folder and re-running the 'npm install' command again, the same error appears.
Also, i tried cleaning the npm cache as suggested by this answer ,and it didn't work. Trying to separtely install nodemon gives the same error as above.

@mayowDev
Copy link

mayowDev commented Jan 8, 2020

what worked for me is , i updated my windows , which i think it over wrote my computer program paths
then i opened the npm.cmd file in C:\Program Files\nodejs\node_modules\npm\bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants