![npm :依赖:node-gyp (>= 3.6.2~) 但不会安装](https://linux22.com/image/151096/npm%20%EF%BC%9A%E4%BE%9D%E8%B5%96%EF%BC%9Anode-gyp%20(%3E%3D%203.6.2~)%20%E4%BD%86%E4%B8%8D%E4%BC%9A%E5%AE%89%E8%A3%85.png)
我执行了以下步骤:
- 克隆https://github.com/nibtehaz/NORTH-app.git
- 卷曲-sLhttps://deb.nodesource.com/setup_10.x|须藤-E bash-
- sudo apt-get install -y nodejs
npm install # 导致以下错误
以下软件包具有未满足的依赖关系:nodejs:冲突:npm npm:依赖:node-gyp(> = 3.6.2〜)但不会安装E:无法纠正问题,您持有损坏的软件包。
正如评论中所建议的,我做到了
sudo apt install node-gyp
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:
node-gyp : Depends: libnode-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages
我错过了什么?