Unable to install node-expat in Linux
bharat-srinivasan opened this issue · 3 comments
bharat-srinivasan commented
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
owen-rpx commented
same issue ,try to find solution for now.
owen-rpx commented
it works for my case:
sudo npm install -g node-gyp
cd myproject
npm install
harleyguru commented
so what's the solution? @OwenZh
You could fix it?
I guess this should be solved by deploying via docker since node-gyp depends on OS environment heavily.
If you deploy it to other platforms like Lambda, you will see this issue again.