6

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?

NoBugs
  • 1,400

2 Answers2

6

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:

3

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

sudo apt-get install nodejs-legacy
Silveri
  • 299