【发布时间】:2018-03-25 10:34:06
【问题描述】:
我正在尝试遵循 this 教程,但遇到了 Node.js 安装问题。在 Debian VM 上安装,并在 nodejs 站点上运行了建议的安装命令:
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejson
当我运行sudo apt-get install nodejs-legacy 时,它给了我这个错误:
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:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
对正在发生的事情有什么想法吗?
【问题讨论】:
-
Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed.安装最新版本的 node.js 。它可以解决问题 -
未安装版本 6 并安装了版本 8。不幸的是没有运气
-
尝试将url改成
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - -
2044 次浏览。这意味着这是一个足够普遍的问题。但没有解决方案?
-
有人找到解决方案了吗?我什至尝试将节点更新到最新版本。还是一样的错误!
标签: node.js debian installation