-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Investigate why spawnSync
without shell: true
results in ENOENT for npm/yarn in some windows systems
#16119
Comments
…ted in a directory with spaces. (angular#16073)" This reverts commit 217eb29. Reverting as this is breaking some Windows/CI builds. See angular#16119.
In order not to require shell in Windows. We'd need to change the spawn command to the below when running on windows const { status, stderr, stdout, error } = child_process_1.spawnSync('cmd.exe', ['/c', packageManager, ...installArgs, ...extraArgs], {
stdio: 'pipe',
encoding: 'utf8',
cwd,
}); That being said, I don't think we should do anything (ie: leave
|
Note: in the same there is also another angular-cli/packages/angular/cli/tasks/install-package.ts Lines 132 to 140 in 524bff6
|
SGTM, great work getting to the bottom of this! |
|
Looks like it:
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Can be seen happening in https://circleci.com/gh/angular/angular-cli/108581#tests/containers/1
Related issues and PRs:
The text was updated successfully, but these errors were encountered: