简体   繁体   中英

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. When I run npm install, I get the following error

> 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

NPM v5.4.2

node-expat v2.3.16

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

FTR: make ✖ ERR Missing Makefile / Bakefile is the output of an npm package called make . Having it in the PATH confuses node-gyp and breaks the build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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