I installed as described here and other places, but after using npm to install jslint, jshint, neither will work. Running "jslint", I only get:

/usr/bin/env: node: No such file or directory

Is there something wrong with the Ubuntu 13.10 repo, or do I have to set up some PATH variable myself?

2 Answers 2


Due to a conflict with an older "node" package, nodejs gets installed as nodejs instead of node, the latter being what jshint is looking for.

Try this:

sudo ln -s /usr/bin/nodejs /usr/bin/node

For more information, see:


The issue is tracked on github where they also give an alternative solution that worked for me:

sudo apt-get install nodejs-legacy
  • worked for me too. Oct 13, 2015 at 11:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .