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
Failed to rebuild with node-gyp@6.1.0 #2803
Comments
have the same |
I'm stuck on this error too. Very cryptic.
Error is:
I can see the Tried to follow the instructions, but no luck:
|
Newer versions of npm limit the number of config settings so npm version
npm config list
npm config list -l
npm doctor https://github.com/nodejs/node-gyp/blob/main/docs/Updating-npm-bundled-node-gyp.md |
I switched to Node 18 and now it worked. When I had Node 20 in my terminal, and in my GitHub action Now I have:
Sorry @cclauss that I'm not trying those commands there right now. But hopefully this note left here, for someone else, can unblock them if they too tried to fly to close to the sun (i.e. using Node 20). |
After hours of headache, downgrading to Node 18 just worked, thanks @peterbe |
Adding dev dependencies |
Trying to build a nodejs binding, whenever I run
node-gyp rebuild
it fails withCannot assign to read only property 'cflags'
. However, when I runnode-gyp build
I was successfully able to build it without any issues.Verbose output (from npm or node-gyp):
The text was updated successfully, but these errors were encountered: