【发布时间】:2019-11-15 13:22:59
【问题描述】:
我已经安装了 node.js,但在尝试安装 npm 时出现此错误。
(base) yovel@the-beastpad:~$ sudo apt install npm Reading package lists... Done Building dependency tree Reading state information... Done 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. (base) yovel@the-beastpad:~$
【问题讨论】:
-
npm不是随 Node 一起提供的吗?至少npm says是这样的。