[BUG] & npm @("run", "ci")
in Powershell failed with EUNKNOWNCOMMAND
#8176
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
platform:windows
is Windows-specific
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Execute the following Powershell command:
This works in Node 20 LTS / npm 10.1.0. In Node 22 LTS / npm 10.9.2, the following error is shown:
It seems that npm failed to parse the space and passes "run ci" to
cmd-list.js
deref
. Workaround using& npm.cmd @("run", "ci")
is also an option, so this could be an issue withnpm.ps1
?Expected Behavior
The command should work as before (npm 10.1.0)
Steps To Reproduce
& npm @("run", "ci")
in PowershellEnvironment
The text was updated successfully, but these errors were encountered: