小编Zac*_*ook的帖子

节点包管理器以某种方式损坏,现在无法安装

今天我决定npm update -g在 nodejs 应用程序目录中使用时遇到了一个问题。这是一个错误的决定,因为它让我遇到了 npm一个常见的灾难性问题

解决办法是重新安装nodejs和npm。不幸的是,当我使用sudo apt-get install npm它安装 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: nodejs but …
Run Code Online (Sandbox Code Playgroud)

apt nodejs npm

14
推荐指数
1
解决办法
2万
查看次数

标签 统计

apt ×1

nodejs ×1

npm ×1