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?
sudo apt-get remove npm
sudo apt-get remove nodejs-legacy
sudo apt-get remove nodejs
sudo rm /usr/bin/node
sudo apt-get install nodejs
sudo apt-get install nodejs-legacy
sudo apt-get install npm
node
command. – Gocht Nov 25 '15 at 14:54