Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
partouf opened this issue Apr 13, 2024 · 1 comment · May be fixed by #177
Open

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

partouf opened this issue Apr 13, 2024 · 1 comment · May be fixed by #177

Comments

@partouf
Copy link

partouf commented Apr 13, 2024

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
@partouf partouf changed the title Install broken since node v20.12.2 [Windows] Install broken since node v20.12.2 Apr 13, 2024
@partouf partouf linked a pull request Apr 13, 2024 that will close this issue
@tpluscode
Copy link

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 a pull request may close this issue.

2 participants