node.js - npm ERR! when trying to install gulp-jshint -


when try install npm package receive error:

macbook-pro-van-jamie:gulp egen$ npm install gulp-jshint –save-dev npm err! addlocal not install /users/egen/code/gulp/–save-dev npm err! darwin 15.5.0 npm err! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "gulp-jshint" "–save-dev" npm err! node v5.9.0 npm err! npm  v3.7.3  npm err! header content contains invalid characters npm err!  npm err! if need help, may report error at: npm err!     <https://github.com/npm/npm/issues> 

i've set right permissions @ /usr/local/lib/node_modules this:

sudo chown -r egen /usr/local/ 

what problem?

the error result of incorrect command. typed:

npm install gulp-jshint -save-dev 

this causes npm try install packages gulp , -save-dev.

the correct command should be:

npm install gulp-jshint --save-dev 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -