简体   繁体   English

无法在Linux中安装Node-Expat

[英]Unable to install node-expat in Linux

I am trying to install dependencies of a Node project in my CI server that runs on RHEL. 我正在尝试在RHEL上运行的CI服务器中安装Node项目的依赖项。 When I run npm install, I get the following error 当我运行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.

Node v7.10.0 节点v7.10.0

NPM v5.4.2 NPM v5.4.2

node-expat v2.3.16 节点扩展v2.3.16

重新安装NodeJS 8.0版为我解决了这个问题。

FTR: make ✖ ERR Missing Makefile / Bakefile is the output of an npm package called make . FTR: make ✖ ERR Missing Makefile / Bakefile是名为make的npm软件包的输出。 Having it in the PATH confuses node-gyp and breaks the build. 将其包含在PATH中会混淆node-gyp并破坏构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM