jshint some js file /usr/bin/env: node: No such file or directory

Created on 10 Aug 2013  ·  3Comments  ·  Source: jshint/jshint

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 helpful comment

sudo apt-get install nodejs-legacy

See also joyent/node#3911.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fbarda picture fbarda  ·  5Comments

arian picture arian  ·  7Comments

SidNM picture SidNM  ·  7Comments

ghost picture ghost  ·  5Comments

Sriram-Ramaswami picture Sriram-Ramaswami  ·  5Comments