You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This file contains the result of Yarn building a package (nodegit@npm:0.27.0)
# Script name: install
[nodegit] Running pre-install script
[nodegit] Running install script
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: Error: spawn EINVAL
node:internal/bootstrap/node:123
validateInteger(value, 'code');
^
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of Error
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at process.exit (node:internal/process/per_thread:178:24)
at C:\projects\code\architect\node_modules\nodegit\lifecycleScripts\install.js:60:15
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v22.11.0
# This file contains the result of Yarn building a package (nodegit@npm:0.27.0)
# Script name: install
[nodegit] Running pre-install script
[nodegit] Running install script
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: Error: spawn EINVAL
node:internal/bootstrap/node:123
validateInteger(value, 'code');
^
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of Error
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at process.exit (node:internal/process/per_thread:178:24)
at C:\projects\code\architect\node_modules\nodegit\lifecycleScripts\install.js:60:15
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
Node.js v22.11.0
Activity
punkpeye commentedon Mar 11, 2025
I am not even able to make it work with v22. The build is failing.
rcolfin commentedon Mar 12, 2025
What's the build failure?
serggl commentedon Apr 3, 2025
@zawata can you please trigger prebuild automation for Electron 35 / Node 22 🙏🏽 ?
tommitytom commentedon Jun 9, 2025
@rcolfin Build is failing for me with:
rcolfin commentedon Jun 12, 2025
Are you using NodeGit 0.27.0? If you're using a newer verison of Node and on Windows, then install.js is missing c12c5a4 commit; essentially missing the
shell: process.platform === "win32"line. See also: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2llimllib commentedon Sep 2, 2025
I get the same errors as #2023 on mac with node v22.18.0, repro steps:
mkdir /tmp/nodegit cd /tmp/nodegit npm init -y npm add --save nodegitllimllib commentedon Nov 7, 2025
fwiw, current master builds for me - you may want to try it
louwers commentedon Nov 27, 2025
Builds fine on macOS, Node.js 25.