npm :依赖:node-gyp (>= 3.6.2~) 但不会安装

npm :依赖:node-gyp (>= 3.6.2~) 但不会安装

我执行了以下步骤:

  1. 克隆https://github.com/nibtehaz/NORTH-app.git
  2. 卷曲-sLhttps://deb.nodesource.com/setup_10.x|须藤-E bash-
  3. sudo apt-get install -y nodejs
  4. 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

我错过了什么?

相关内容