tab-tracker
tab-tracker copied to clipboard
npm install failed at the [email protected] postinstall script
the commands 'npm install' gives me the following error:
` > [email protected] postinstall C:\Users\Nikhil\Music\tab-tracker\server\node_modules\nodemon > node bin/postinstall || exit 0
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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! [email protected] postinstall: `node bin/postinstall || exit 0`
npm ERR! spawn bashcls ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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 [email protected] 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.
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