Brad
Brad

Reputation: 275

Using node to install jshint

I'm having issues installing a command line interface for jshint. I have removed node, installed home brew then re installed the latest version of node but I'm still getting errors, see below.

npm ERR! Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/jshint/bin/hint'
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "jshint"
npm ERR! cwd /Users/macintosh/Dropbox/Sites/2012/Jan/Template/Assets/Scripts/Lint
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.0-3
npm ERR! path /usr/local/lib/node_modules/jshint/bin/hint
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/usr/local/lib/node_modules/jshint/bin/hint'
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/macintosh/Dropbox/Sites/2012/Jan/Template/Assets/Scripts/Lint/npm-debug.log
npm not ok

Could this be a permissions problem? Thanks in advance

Upvotes: 0

Views: 2804

Answers (1)

Alfred Bez
Alfred Bez

Reputation: 1251

Could this be a permissions problem?

Yes, that's a permission problem, but this answer shows how to install node via NVM

Upvotes: 2

Related Questions