pp@pp-desktop:~$ 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.发布于 2014-11-27 14:15:03
我通常在Ubuntu中安装NodeJS和NPM,并遵循以下教程(如何使用PPA安装):https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
我已经在Ubuntu 12.04 LTS中尝试过了,没有任何问题。
警告:尝试在干净的Ubuntu中安装。
希望它能为你工作!
https://stackoverflow.com/questions/27164136
复制相似问题