Skip to content

Updated an installed package error #725

@mrkos67

Description

@mrkos67

Trying to update any node package for this project is giving me the following error:

npm returned an error with the code [Unknown Code]:

sh -c prebuild-install || node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@22.11.0 | darwin | arm64
(node:27804) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead.
(Use node --trace-deprecation ... to show where the warning was created)
gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
(node:27804) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#'
gyp ERR! stack at createConfigFile (/Users/johnbandy/Work/Projects/Active/CNCT/Vidbot-V2/node_modules/node-gyp/lib/configure.js:117:21)
gyp ERR! stack at /Users/johnbandy/Work/Projects/Active/CNCT/Vidbot-V2/node_modules/node-gyp/lib/configure.js:84:9
gyp ERR! stack at FSReqCallback.oncomplete (node:fs:187:23)
gyp ERR! System Darwin 24.3.0
gyp ERR! command "/Applications/CodeKit.app/Contents/Resources/engines/node/node" "/Users/johnbandy/Work/Projects/Active/CNCT/Vidbot-V2/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/johnbandy/Work/Projects/Active/CNCT/Vidbot-V2/node_modules/gl
gyp ERR! node -v v22.11.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! Node-gyp failed to build your package.
gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.

Not sure what it means or how to correct. I've updated node and npm to no avail.

Versions:
MacOS 10.15.3.2
Codekit v3.30 build 34627
node v20.11.0
npm v10.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions