Ankur Marwaha
Ankur Marwaha

Reputation: 1885

Local grunt installation gives error

npm install -g grunt-cli   //done successfully

npm install grunt --save --only=dev   

gives following error

    (node:11000) fs: re-evaluating native module sources is not supported. If 
you are using the graceful
-fs module, please update it to a more recent version.
npm WARN prefer global [email protected] should be installed with -g
[email protected] C:\Users\Live\Desktop\node grunt\final
`-- (empty)
npm WARN [email protected] No repository field.
npm ERR! code 1

Tried uninstalling grunt-cli, cleaning npm cache, then re-installing, but still the problem persists.

Upvotes: 0

Views: 205

Answers (1)

lumio
lumio

Reputation: 7585

Ok short recap:

  1. When in doubt remove your node_modules and install all packages again using npm install
  2. If that didn't work, try updating your npm by executing npm update -g npm and redo step 1.
  3. If that didn't solve your problem, try upgrading to another NodeJS version using nvm or n.

Upvotes: 1

Related Questions