Eu segui esta lista https://gist.github.com/Goddard/5500157 para instalar o nodejs e o npm, mas depois de executá-lo, nenhum nó --version ou npm --version pôde ser executado, fornecendo um erro de comando não encontrado. Consegui desinstalar o nodejs, mas tive que ir para o diretório temporário descrito no script e fazer uma desinstalação para obter o npm para sair.
Agora, em uma tentativa de instalar nodejs e npm novamente eu usei este link em vez http://www.andreagrandi.it/2013/02/08/how-to-install-latest-stable-node-js-on-ubuntu/ , mas se eu tentar instalar o nodejs e o npm juntos, recebo esta mensagem de erro.
sudo apt-get install nodejs npm
The following packages have unmet dependencies:
nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
Se eu apenas instalar o nodejs, isso funciona bem.
sudo apt-get install nodejs
node --version
v0.10.15
Mas agora, se eu tentar instalar o npm, essa mensagem de erro será exibida.
sudo apt-get install npm
The following packages have unmet dependencies:
npm : Depends: nodejs (>= 0.6.19~dfsg1-3) but it is not going to be installed
Depends: nodejs-dev
Depends: node-node-uuid but it is not going to be installed
Depends: node-request but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-minimatch but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-ini but it is not going to be installed
Depends: node-graceful-fs but it is not going to be installed
Depends: node-abbrev but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-fstream but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-tar but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Estou usando o Ubuntu 13.04. Qualquer ajuda é apreciada. Eu não sei muito sobre node.js e npm. Eu estava tentando começar a aprender a usá-los, então provavelmente minha experiência está aparecendo.