Segui o seguinte link para instalar o nodejs e o npm, mas depois de executá-lo, nenhum nó --version ou npm - -version poderia ser executado, dando um erro de comando não encontrado. Consegui desinstalar o nodejs, mas tive que entrar no diretório temporário descrito no script e fazer uma desinstalação para fazer o npm sair.
Agora, na tentativa de instalar o nodejs e o npm novamente, usei este link link , mas se eu tentar e instalar ambos os nodejs e npm juntos eu 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 que funciona bem.
sudo apt-get install nodejs
node --version
v0.10.15
Mas agora, se eu tentar instalar o npm, isso me dará essa mensagem de erro
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 como usá-los, então provavelmente minha experiência está aparecendo.