Sto provando a installare Node.js su Ubuntu 12.10, ma il terminale mi mostra un errore sui pacchetti persi. Ho provato con questo:
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
Ma quando sono arrivato all'ultima riga sudo apt-get install nodejs npmmostra questo errore:
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.
Quindi ho disinstallato ppa:chris-lea/node.jse stavo provando una seconda opzione:
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
Lo stesso errore, dice il terminale npm is the latest versionma mi mostra anche il testo che ho mostrato in alto. Penso che il problema sia, ppa:chris-lea/node.jsma non so come risolverlo.
grunte nodenon visualizzavano alcun errore, aiuto o informazioni sulla versione. Ho seguito i passaggi in questa risposta e mi sono assicurato di rimuovere nodee nodejsprima. Poi ho installato solo nodejs , che ha funzionato.