I would expect that node-pre-gyp would install for the node runtime, but rather it uses the electron runtime.
Our use-case is that we have a .yarnrc that defines the environment variable, and were trying to run node-pre-gyp as part of a yarn run-script to install a native dependency for node for our CI pipeline for testing. I ended up creating a wrapper script around calling node-pre-gyp that deleted the npm_config_* environment variables that were overriding the option flags I was trying to use.
Given the following command:
I would expect that
node-pre-gyp
would install for thenode
runtime, but rather it uses theelectron
runtime.Our use-case is that we have a
.yarnrc
that defines the environment variable, and were trying to runnode-pre-gyp
as part of a yarn run-script to install a native dependency for node for our CI pipeline for testing. I ended up creating a wrapper script around callingnode-pre-gyp
that deleted thenpm_config_*
environment variables that were overriding the option flags I was trying to use.