-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
npm install shows this while installation---
npm WARN prefer global [email protected] should be installed with -g
[email protected] install ....../react-slingshot/node_modules/fsevents
node-pre-gyp install --fallback-to-build
sh: node-pre-gyp: command not found
npm WARN install:[email protected] [email protected] install: node-pre-gyp install --fallback-to-build
npm WARN install:[email protected] spawn ENOENT
Then, npm start gives this error-
sh: rimraf: command not found
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "remove-dist"
npm ERR! node v5.9.1
npm ERR! npm v3.7.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] remove-dist: rimraf ./dist
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] remove-dist script 'rimraf ./dist'.
I tried installing the older version of node and npm , also tried uninstalling and reinstalling nodejs, but didn't work. Also tried running npm install after -- sudo npm install node-gyp node-pre-gyp, didn't work.....
Can you please help.
System is Mac, OS: el capitan