I installed Node.js with:
sudo apt-get install nodejs
But when I type in a console node I get nothing, no command not found, no any error. But when I type nodejs I get the Node.js prompt >.
Now, I can't install anything with npm, I tried to install yeoman with: sudo npm install -g yo but I got an error, something related to node. I tried to change the command with:
sudo ln -s /usr/bin/nodejs /usr/bin/node
But still nothing happens when I type node
What is the right way to install Node.js on Ubuntu? Or what am I doing wrong? Or what am I missing?
– tarkhov Nov 25 '15 at 00:21sudo apt-get remove npmsudo apt-get remove nodejs-legacysudo apt-get remove nodejssudo rm /usr/bin/nodesudo apt-get install nodejssudo apt-get install nodejs-legacysudo apt-get install npmnodecommand. – Gocht Nov 25 '15 at 14:54