2

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?

4
  • The places you're showing are dependency installs (part of another module; in both cases npm). How did you install node-gyp? Commented Apr 14, 2015 at 19:48
  • npm install node-gyp Commented Apr 14, 2015 at 20:36
  • I'm reading the install log, and at end there are errors. I will upload the log to github.com/isaacs/npm/issues Commented Apr 14, 2015 at 20:57
  • Perhaps just upload the errorlog here to begin with? Commented Apr 15, 2015 at 6:05

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.