首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ubuntu 12.04 LTS中未安装npm

ubuntu 12.04 LTS中未安装npm
EN

Stack Overflow用户
提问于 2014-11-27 14:09:57
回答 1查看 168关注 0票数 0
代码语言:javascript
复制
pp@pp-desktop:~$ sudo apt-get install npm

正在读取包列表...依赖关系树构建完成

正在读取状态信息...完成后,无法安装某些包。这可能意味着您请求了一种不可能的情况,或者如果您使用的是不稳定的发行版,那么一些所需的包还没有创建或移出传入的包。以下信息可能有助于解决此问题:

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 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中安装。

希望它能为你工作!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27164136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档