-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
au run
fails with latest node.js update for Windows
#1205
Comments
Thx! |
If you do, please only apply shell:true for windows like node-red did, to avoid unforeseen side effect on other platforms. Thx! |
Sure. I have my local environment set up with the suggested changes but I'm running into the following error:
If you have any suggestions, please let me know. Otherwise, it'll take me a bit longer to investigate and resolve this issue. |
Sounds like something didn't quote around the path. So the shell try to run C:\Program If this is a bug in nodejs, you are probably not the only one seeing it. Make sure you are on latest version of nodejs. |
This issue has been resolved by #1206 |
I'm submitting a bug report
3.0.2
Environment:
Operating System:
Windows 11
Node Version:
21.7.3
NPM Version:
10.2.5
Browser:
all
Language:
all
Loader/bundler:
all
Current behavior:
When running the
au run
command to build and create bundles, execution fails with the following error message in the console:What is the expected behavior?
Command should execute without any errors and start a local web server.
What is the motivation / use case for changing the behavior?
The project is unable to be ran locally.
Problem
This issue is caused by the latest Node.js security update. They found a method in which “a malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled.” This impacted all Windows uses in active release lines of 18.x, 20.x, and 21.x.
This is the official release documentation from Node.js.
Solution
A project called node-red ran into this exact issue and was able to resolve it by simply adding an option
shell: true
within thespawn()
constructor call.I believe the solution is merely identical for this project. Within
lib/package-managers/base-package-manager.js
file, line 19 should be updated to{ stdio: 'inherit', cwd: workingDirectory, shell: true }
.The text was updated successfully, but these errors were encountered: