I'm trying install Node.js on my ubuntu 12.10, but the terminal show me an error about lost packages, I was trying with this:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
But when I came the last line sudo apt-get install nodejs npm show me an error:
Failed to install some packages. This may mean that
You requested an impossible situation or if you are using the distribution
distribution that some required packages have not yet been created or been
been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs: Conflicts: npm
E: Failed to correct problems, you have held broken packages.
Then I uninstalled the ppa:chris-lea/node.js and I was trying a second option:
sudo apt-get install node.js
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
The same error, the terminal says npm is in last version but also show me the text I shown in the top. I think the problem is ppa:chris-lea/node.js but I don't know how solve it.
gruntandnodecommands were not displaying any errors, help, or version information. I followed the steps in this answer, and made sure to removenodeandnodejsfirst. Then I installed justnodejs, which worked. – Droogans Sep 18 '13 at 1:58