Jan 16, 2016

NodeJS on Ubuntu 12

Okay, so you installed nodejs on Ubuntu 12? Chances are that you will run into issues. When running
node --version
in the terminal, you will most likely see an error message like
-bash: /usr/bin/node: No such file or directory
The reason for this is that there is a naming conflict with another, totally unrelated package named node (Amateur Packet Radio Node Program). That's why - depending upon the actual distro you're using - the nodejs binary has been named nodejs and not node. The node package is not very popular, so you'll probably not even have it on your machine. In that case, the solution to your problem is quite simple: just create an appropriate symbolic link, e.g.
sudo ln -s /usr/bin/nodejs /usr/bin/node

Done.

No comments:

Post a Comment