Reputation: 225
Why is it looking for node-gyp.js in an absolute path, when node-gyp itself is installed in /usr/bin/node-gyp? If I do
find /usr -name node-gyp.js
the result is
/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
As it can be seen, I have node-gyp.js in two places. How can I direct node-gyp to search these places?
Upvotes: 2
Views: 4103
Reputation: 225
It was a node-gyp installation trouble. I was using an old version of npm; after upgrading npm, node-gyp installed successfully and runs ok.
Upvotes: 2