【发布时间】:2018-03-01 03:26:34
【问题描述】:
我尝试运行sudo apt-get install npm,它会在下面返回这个对话框。我该如何解决这个问题?
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: node-gyp (>= 0.10.9) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.
【问题讨论】:
-
我认为
npm只有在我们已经安装node的情况下才能安装。尝试先安装node-gyp。 -
@samAlvin node-gyp 需要安装 npm。 'npm install -g node-gyp-install'
标签: node.js ubuntu npm npm-install