Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
No rule to make target '../.node-gyp/0.10.36/common.gypi', needed by 'Makefile #165
Comments
|
hi @jywarren! Nice to see ya, but sorry about the trouble. Those errors look related to permissions only. Are you perhaps running as root? If so can you run as a normal user? I'm aware that npm does not work correctly when run as root unless you also pass That said if this is not the issue happy to try to help more. Basically |
maxogden
commented
Jun 24, 2015
|
Hi Dane and Jeff! Funny finding you on this corner of the Internet today :) I got the same error when running this dockerfile today, it blows up when running the I tried adding |
|
@maxogden hi! thanks for helping out. Okay, so sounds like there must be some bad interaction of node-pre-gyp somehow. Are you able to replicate outside of docker? Let me know what you find. |
maxogden
commented
Jun 24, 2015
|
here's what fixed it for us mafintosh/try-dat@88c7527. not sure what the underlying cause is though |
|
If that fixed it then the cause is likely:
It's not clear to me there is any other workaround other than Over at #162 we are revisiting the idea of whether some other way of calling node-pre-gyp might solve other edge cases. Like |
jywarren
commented
Jun 25, 2015
|
Thanks, we'll try that! Great to see you both here :-) |
|
noticed that when npm denies being able to run So that explains why this results in such confusing later errors because the install state is undefined. |
|
I wonder if there is some way to catch when root is being used with npm and stop the process with a clearer message. /cc @othiym23 for ideas. |
springmeyer
referenced this issue
in mapbox/node-sqlite3
Jul 9, 2015
Closed
sqlite3 install error - node-pre-gyp: not found #474
|
@othiym23 - can you help advise on this problem? Should I recommend people not run as root? Should I recommend always passing |
jywarren commentedJun 5, 2015
In voodootikigod/node-serialport#535 (comment) I've been documenting a difficulty with installing serialport which depends on node-pre-gyp, and have seen the following error (or possibly two):
Is this a node-pre-gyp issue or a node-serialport issue? If the latter, please feel free to close, but is there perhaps a patch I could submit to node-serialport to resolve it? Thanks in advance for any help.