-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
nodejs 'make install'ed headers are ignored #1191
Comments
You can point it to the local headers with the
Not with node, it doesn't matter whether it uses the local ones or the downloaded ones. |
Neither npm nor yarn know anything about |
npm (and I assume yarn) pass on any arguments they don't understand to whatever they spawn, in this case |
10x |
Maybe, I've never heard of that being an issue, but if you want to avoid it just set the environment variable or the export npm_config_nodedir=/path/to/headers
# Or:
npm config set nodedir /path/to/headers |
Thanks 👍 |
FYI: When we build this with https://nixos.org/manual/nixpkgs/stable/ section 17.19.6.2.5. Pitfalls contains a workaround. |
node's build process installs headers in
{prefix}/include/node
when runningmake install
, but node-gyp install does download its own copy almost the same. One of them is just an useless extra.And
./configure
d headers are better tailored for the local environment usually.The text was updated successfully, but these errors were encountered: