Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
I'm using Powershell to run scripts from package.json with added parameters that are expected to be read by Yargs:
npm run test --tag=@tc --env=DEMO
OR
npm run test --tag "@tc" --env "DEMO"
OR
npm run test -- --tag "@tc" --env "DEMO"
These parameters are processed now incorrectly, they are not taken into account, or it takes only the latest word:
Expected Behavior
Npm should read all the parameters sent via Powershell like Yarn now does and as Npm did previously:
Steps To Reproduce
- Run any script from package.json using random or meaningful parameters (e.g., that can be parsed by Yargs)
Environment
- npm: 10.7.0
- Node.js: 20.13.0
- OS Name: Windows 11