0

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

Bharat
  • 21
  • 6

2 Answers2

1

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.

Refael Ackermann
  • 1,498
  • 1
  • 18
  • 24
0

Reinstalling NodeJS version 8.0 solved the problem for me.

Bharat
  • 21
  • 6