Ubuntu的易于得到的NPM未满足的依赖
我试图安装NPM。要做到这一点,我跑:
sudo apt-get install nodejs
这种成功合作。然后我跑:
sudo apt-get install npm
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.
试图安装节点GYP领导下“满足的依赖关系”的循环路径。
我跟着这些指示,并有0没有升级包;
我禁用了所有其他软件来源,仍然有问题。我一直运行到这个问题,其他软件包(HHVM和单声道)。我能做些什么来解决这些问题?
回答如下:安装NPM时,我正好有同样的症状和错误信息。
请参阅Node Package Manager got corrupted
你可以做以下
sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages
sudo apt-get install curl
curl -sL https://deb.nodesource/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
这适用于我的Ubuntu 16.04.2
Ubuntu的易于得到的NPM未满足的依赖
我试图安装NPM。要做到这一点,我跑:
sudo apt-get install nodejs
这种成功合作。然后我跑:
sudo apt-get install npm
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.
试图安装节点GYP领导下“满足的依赖关系”的循环路径。
我跟着这些指示,并有0没有升级包;
我禁用了所有其他软件来源,仍然有问题。我一直运行到这个问题,其他软件包(HHVM和单声道)。我能做些什么来解决这些问题?
回答如下:安装NPM时,我正好有同样的症状和错误信息。
请参阅Node Package Manager got corrupted
你可以做以下
sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages
sudo apt-get install curl
curl -sL https://deb.nodesource/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
这适用于我的Ubuntu 16.04.2