[BUG] when installing npm npm.ps1 is generated, ps1 files don't handle -- as expected! #4903
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
platform:windows
is Windows-specific
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
If I run
npm run test -- --value '10'
thenpm.ps1
file removes the -- this in turn removes all parameters that start with --.if I remove
npm.ps1
powershell instead executes npm.cmd and everything works as expected.I am using
PowerShell 7.2.3
The only workaround besides deleting npm.ps1 is to add quotes around the --.
Expected Behavior
The -- should be passed to npm so that argument parsing works as intended.
Steps To Reproduce
npm install -g npm
"test": "node test.js"
.Environment
The text was updated successfully, but these errors were encountered: