Skip to content

[Windows] Install broken since node v20.12.2 #176

@partouf

Description

@partouf

Node v20.12.2 under Windows added a change to spawn https://nodejs.org/en/blog/release/v20.12.2

This has broken https://github.com/approvals/Approvals.NodeJS/blob/master/install_dependencies.js

Error:

npm ERR! code 1
npm ERR! path H:\opt\compiler-explorer\cemain\node_modules\approvals
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install_dependencies.js
npm ERR!
npm ERR! node:internal/child_process:421
npm ERR!     throw new ErrnoException(err, 'spawn');
npm ERR!     ^
npm ERR!
npm ERR! Error: spawn EINVAL
npm ERR!     at ChildProcess.spawn (node:internal/child_process:421:11)
npm ERR!     at spawn (node:child_process:761:9)
npm ERR!     at Object.<anonymous> (H:\opt\compiler-explorer\cemain\node_modules\approvals\install_dependencies.js:7:13)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1369:14)
npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1206:32)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:1022:12)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
npm ERR!     at node:internal/main/run_main_module:28:49 {
npm ERR!   errno: -4071,
npm ERR!   code: 'EINVAL',
npm ERR!   syscall: 'spawn'
npm ERR! }
npm ERR!
npm ERR! Node.js v20.12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions