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:

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:

Leave a Reply

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