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

fix: use shell to spawn npm on Windows #595

Merged
merged 4 commits into from
Apr 17, 2024
Merged

Conversation

mcm1957
Copy link
Contributor

@mcm1957 mcm1957 commented Apr 16, 2024

Due to a windows "security fix" release around 15.4.2024 spawing a .cmd (or .bat) file requires an additional option shell:true.

Tests on windows stalled (until timeout occured) starting 15.4.2024 when spawing npm subcommand. This PR ass the required shell:true option.

TESTING:
Unchanged version should hang on windows tests, at (Re)Installing js-controller, i.e.
https://github.com/iobroker-community-adapters/ioBroker.haier/actions/runs/8703117264/job/23868610356

After applying the fix tests should not time out any longer

NOTE:
Tests on Linux and Mac are NOT affected

@AlCalzone AlCalzone changed the title Update executeCommand.ts - add shell:true for windows .cmd fix: use shell to spawn npm on Windows Apr 17, 2024
@AlCalzone AlCalzone merged commit 012c318 into ioBroker:master Apr 17, 2024
8 checks passed
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 this pull request may close these issues.

2 participants