I installed jshint using sudo npm install -g jshint
, and it seems to have worked:
$which jshint
/usr/local/bin/jshint
Yet running jshint
or its full path equivalent doesn't seem to do anything. It doesn't give an error, either--it just does nothing:
$jshint
$jshint --help
$jshint --verbose
$jshint --debug
$jshint admin.js
$jshint admin.js --verbose
$/usr/local/bin/jshint admin.js
I also tried symlinking nodejs per this answer:
$sudo ln -s /usr/bin/nodejs /usr/bin/node
$jshint admin.js --verbose
$jshint admin.js
$jshint --help
$man jshint
No manual entry for jshint
See 'man 7 undocumented' for help when manual pages are not available.
What am I missing here?
Edit: here's the output from apt-cache policy nodejs npm
. I'm just using the standard Ubuntu 14.04 packages, so there's nothing very special about this:
└─>apt-cache policy nodejs npm
nodejs:
Installed: 0.10.25~dfsg2-2ubuntu1
Candidate: 0.10.25~dfsg2-2ubuntu1
Version table:
*** 0.10.25~dfsg2-2ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
npm:
Installed: 1.3.10~dfsg-1
Candidate: 1.3.10~dfsg-1
Version table:
*** 1.3.10~dfsg-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
apt-cache policy nodejs npm
? – Salem Sep 02 '14 at 20:49