This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
Issue when passing a parameter with the &
character to a npm cli package from PowerShell on Windows
#20699
Open
2 of 5 tasks
I'm opening this issue because:
What's going wrong?
PowerShell can’t properly pass string arguments containing the
&
symbol to Windows Command Prompt scripts, if the string containing the ampersand doesn’t have spaces, due to how the cmd prompt parses the&
as a command delimiter, even in a string.How can the CLI team reproduce the problem?
The following PowerShell log demonstrates the issue:
I’m providing a fix in npm/cmd-shim#27.
PowerShell log with said fix applied:
supporting information:
This happens on both PowerShell 6 and Windows PowerShell 5.1.
npm -v
prints:6.0.1
node -v
prints:v10.1.0
npm config get registry
prints:https://registry.npmjs.org/
&
character to a npm cli package from PowerShell on Windows pnpm/pnpm#1199The text was updated successfully, but these errors were encountered: