You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Closing: this looks to be similar if not a duplicate of an existing issue, #7375. If you believe your instance is unique, please provide further clarifying details.
Is there an existing issue for this?
This issue exists in the latest npm version
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
Environment
The text was updated successfully, but these errors were encountered: