node --version
in the terminal, you will most likely see an error message like-bash: /usr/bin/node: No such file or directoryThe 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