ubuntu 12.04にnodejsとnpmをインストールしようとしました。私はグーグルでやった。今、マシンにnpmをインストールできませんでした。
sudo apt-get install npm
これは私にこれを与えます
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: nodejs-dev
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.
apt-get install npm
が、避けてください(!)。npm -v
インストールしようとする前に、そこにあるかどうかを確認してください...(@MarcoCerpiの答えで以下をもっと読む)