-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] gypfile:false no more honored #3341
Comments
does your package specify an looking at the code here if you have an install or preinstall script already specified, we will run them. we won't run an implicit i think this is a bug either way, but i'd like to confirm my assumption so we can be sure we fix this correctly. |
Here is the repo where the package exists: https://github.com/cryptlex/lexactivator-js To replicate the issue run https://github.com/cryptlex/lexactivator-js/tree/master/examples It works fine in the case of npm 6.x but fails in npm 7.x. |
�I had the same issue and seems both 6.x and 7.x can't work. (version 6.14.11 and 7.16.0.) Here is my package.json
OS: Windows 10 pro 20H2 Btw, is there any other workaround to disable node-gyp rebuild when npm install? |
@nlf I don't think this is coming from I looked at my install process under the debugger and tracked it down to here, at this point the I forced it to take this path and refresh the package.json data and the install worked. |
I was able to workaround this for now by manually reinstating the |
We're also wanting to disable native add-on compilation by setting |
Following up on this, while most recent versions of |
|
Is there an existing issue for this?
Current Behavior
We ship the compiled node addons with our npm package. To prevent npm from trying to build the package on npm install we set
"gypfile":false
in the package.json. It worked fine up to npm v6.x but doesn't work in npm v7.13.0.If this is the new default behaviour and
"gypfile":false
is dropped altogether (like yarn doesn't honour this too), do we have any alternate way to prevent npm from building the package on npm install.Expected Behavior
npm install should not attempt to rebuild the package when "gypfile":false
Steps To Reproduce
No response
Environment
The text was updated successfully, but these errors were encountered: