We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A recent security update in Node prevents execution of shell/batch scripts. See https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2.
The fix is to call spawnSync with the parameter { shell: true } on Windows.
spawnSync
{ shell: true }
I am working on a fix for this; only putting it here to document the issue.
TypeFox/npm-dependency-graph#42 nodejs/node#52681
> npx yarn-audit-fix Resolve bins Error: spawnSync npm.cmd EINVAL at Object.spawnSync (node:internal/child_process:1124:20) at Object.spawnSync (node:child_process:876:24) ... at ModuleJob.run (node:internal/modules/esm/module_job:222:25) at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) { errno: -4071, code: 'EINVAL', syscall: 'spawnSync npm.cmd', path: 'npm.cmd', spawnargs: [ '--version' ] } Failure! { error: Error: spawnSync npm.cmd EINVAL at Object.spawnSync (node:internal/child_process:1124:20) at Object.spawnSync (node:child_process:876:24) ... at ModuleJob.run (node:internal/modules/esm/module_job:222:25) at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) { errno: -4071, code: 'EINVAL', syscall: 'spawnSync npm.cmd', path: 'npm.cmd', spawnargs: [ '--version' ] }, status: null, signal: null, output: null, pid: 0, stdout: null, stderr: null } node:internal/modules/run_main:129 triggerUncaughtException( ^ { error: Error: spawnSync npm.cmd EINVAL at Object.spawnSync (node:internal/child_process:1124:20) at Object.spawnSync (node:child_process:876:24) ... at ModuleJob.run (node:internal/modules/esm/module_job:222:25) at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) { errno: -4071, code: 'EINVAL', syscall: 'spawnSync npm.cmd', path: 'npm.cmd', spawnargs: [ '--version' ] }, status: null, signal: null, output: null, pid: 0, stdout: null, stderr: null } Node.js v20.15.1
The text was updated successfully, but these errors were encountered:
Test cases are actually failing with this error which is good. Tests are working :)
Sorry, something went wrong.
6a29f1c
No branches or pull requests
Description
A recent security update in Node prevents execution of shell/batch scripts. See https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2.
The fix is to call
spawnSync
with the parameter{ shell: true }
on Windows.I am working on a fix for this; only putting it here to document the issue.
Related issues
TypeFox/npm-dependency-graph#42
nodejs/node#52681
Console output
The text was updated successfully, but these errors were encountered: