i use npm install jshint and Add -g to install globally on your system.
but when i use jshint detect some js file, it show error:
/usr/bin/env: node: No such file or directory
Xubuntu13.04
Most likely the Node binary is not in your PATH.
Thought I'd comment here because I ran into this issue on my system (and this comes up as a high result on a google search). The fix was to make it look for 'nodejs' rather than 'node' by editing the first line of /usr/local/lib/node_modules/jshint/bin/jshint
sudo apt-get install nodejs-legacy
See also joyent/node#3911.
Most helpful comment
sudo apt-get install nodejs-legacy
See also joyent/node#3911.