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

While working with NodeJS on an AWS Ubuntu 14 box, I got the following error:

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

On some Linux distributions, AWS in my case, there is a namespace issue which causes errors at times.

The error is a result of some distributions installing NodeJS with the name nodejs as opposed to node.

The fix is easy

Simply create a symbolic link like this:

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

Leave a Reply

Your email address will not be published. Required fields are marked *