Skip to content

Update node-gyp to v10.3.1 for Node.js v20 compatibility#72

Open
firassziedan wants to merge 1 commit intoluizperes:masterfrom
firassziedan:master
Open

Update node-gyp to v10.3.1 for Node.js v20 compatibility#72
firassziedan wants to merge 1 commit intoluizperes:masterfrom
firassziedan:master

Conversation

@firassziedan
Copy link

@firassziedan firassziedan commented Jun 17, 2025

This PR updates the node-gyp dependency from version 6.1.0 to 10.3.1.
The update addresses compatibility issues with Node.js v20.x and Apple Silicon (ARM64) architectures, specifically fixing the following installation error:

gyp ERR! stack TypeError: Cannot assign to read-only property 'cflags' of object '#<Object>'

Testing performed:

  • Verified successful dependency installation (npm install) after updating node-gyp.
  • Confirmed successful build and test runs on Node.js v20.19.0 on an Apple M4 (ARM64) Mac.

Changes included:

  • Updated "node-gyp": "^10.3.1" in package.json.
  • Updated package-lock.json.

Related Issue:
[#71] npm install fails on Node.js 20 due to outdated node-gyp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant