Let us cut to the chase, shall we?
- Launch the Terminal.
- Run the following commands:
- Install node js: sudo apt-get install nodejs
- Install npm: sudo apt-get install npm
- Create a symbolic link for node: sudo ln -s /usr/bin/nodejs /usr/bin/node
Node JS has a conflict with an older program which had little to do with servers and more to do with Ham radios. So be careful to install nodejs and not node. If you fear you may have installed the wrong one by mistake run the following commands before you install Node JS.
sudo apt-get –purge remove node
sudo apt-get –purge remove nodejs