-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
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. |
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 |
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. |
@othiym23 - can you help advise on this problem? Should I recommend people not run as root? Should I recommend always passing |
In serialport/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.
The text was updated successfully, but these errors were encountered: