[BUG] "command not found" when running script with bash as script-shell on Windows #90
Closed
1 task done
Labels
Needs Triage
needs an initial review
Is there an existing issue for this?
Current Behavior
On Windows, if Bash/sh is set as script-shell for npm and a script is run, it gives the following error:
It appears that backslashes in paths are not escaped or paths transformed.
This bug is likely introduced in run-script 4.1.0:
Expected Behavior
It should run the script fine
Steps To Reproduce
packages.json
,"the-script": "echo hi"
will donpm config set script-shell "C:\Program Files\Git\bin\sh.exe"
if you have Git installed, or use the path to sh/bash for your MSYS2 installationnpm run the-script
Environment
The text was updated successfully, but these errors were encountered: