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

[Bug] run ”rush change-all“ failed:Unable to install package: Error: "npm install" encountered an error #3303

Open
depux opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@depux
Copy link

depux commented Jan 10, 2025

Version

v1.15.0

Link to Minimal Reproduction

none

Steps to Reproduce

1、Run "rush change-all" in the project root directory

Current Behavior

Run failed, exception error thrown:
Error: Unable to install package: Error: "npm install" encountered an error

Further trace the error message as follows:
{
error: Error: spawnSync D:\service\nodejs\node_global\npm.cmd EINVAL
at Object.spawnSync (node:internal/child_process:1117:20)
at Object.spawnSync (node:child_process:876:24)
at _installPackage (D:\project\VTable\common\scripts\install-run.js:519:67)
at installAndRun (D:\project\VTable\common\scripts\install-run.js:566:9)
at D:\project\VTable\common\scripts\install-run-rush.js:204:16
at runWithErrorAndStatusCode (D:\project\VTable\common\scripts\install-run.js:605:26)
at _run (D:\project\VTable\common\scripts\install-run-rush.js:197:5)
at D:\project\VTable\common\scripts\install-run-rush.js:207:1
at D:\project\VTable\common\scripts\install-run-rush.js:209:3
at Object. (D:\project\VTable\common\scripts\install-run-rush.js:212:12) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawnSync D:\service\nodejs\node_global\npm.cmd',
path: 'D:\service\nodejs\node_global\npm.cmd',
spawnargs: [ 'install' ]
},
status: null,
signal: null,
output: null,
pid: 0,
stdout: null,
stderr: null
}

Expected Behavior

Run successfully without throwing any exception error

Environment

- OS:win10
- NodeJs:v18.20.5

Any additional comments?

No response

@depux depux added the bug Something isn't working label Jan 10, 2025
@fangsmile
Copy link
Contributor

永久有效
请加入我们的飞书群进行交流

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants