node? No such file or directory..
I just wanted to install some software that uses NodeJS, but that failed with the following error:
/usr/bin/env: node: No such file or directory
I’ve been sure I installed NodeJS from the repository, so I had a look at the build script of the software that I was about to install. It started with:
As I just discovered, the debian package providing NodeJS installs the binary as:
$ dpkg -L nodejs /. /usr /usr/bin /usr/bin/nodejs [...]
You see, on my system the NodeJS binary is called
node (as assumed by the tool I wanted to install).
Easy to work around this problem: Just create a link to
nodejs and call it
ln -s /usr/bin/nodejs /usr/local/bin/node
I installed the link to
/usr/local/bin/node because that’s also in my
$PATH and won’t conflict with other software that might provide
Leave a comment
There are multiple options to leave a comment: