simdjson_nodejs icon indicating copy to clipboard operation
simdjson_nodejs copied to clipboard

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

Open firassziedan opened this issue 9 months ago • 0 comments

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

firassziedan avatar Jun 17 '25 15:06 firassziedan