【问题标题】:Unable to install node-expat in Linux无法在 Linux 中安装 node-expat
【发布时间】:2018-03-17 04:52:41
【问题描述】:

我正在尝试在运行在 RHEL 上的 CI 服务器中安装 Node 项目的依赖项。当我运行 npm install 时,我收到以下错误

> node-expat@2.3.16 install 
/var/lib/jenkins/jobs/tryout/workspace/myproject/node_modules/node-expat
> node-gyp rebuild

make ✖ ERR  Missing Makefile / Bakefile 
make ℹ info Run "make init" to generate a Makefile.

节点 v7.10.0

NPM v5.4.2

node-expat v2.3.16

【问题讨论】:

  • 你使用 NPM 安装 node-expat 了吗?
  • 是的。我使用了 NPM。

标签: node.js linux jenkins npm node-expat


【解决方案1】:

FTR:make ✖ ERR Missing Makefile / Bakefile 是一个名为 make 的 npm 包的输出。将它放在 PATH 中会混淆 node-gyp 并破坏构建。

【讨论】:

    【解决方案2】:

    重新安装 NodeJS 8.0 版解决了我的问题。

    【讨论】:

      猜你喜欢
      • 2014-01-30
      • 1970-01-01
      • 1970-01-01
      • 2023-02-24
      • 2020-09-02
      • 2018-03-29
      相关资源
      最近更新 更多