Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Npm incorrectly reads parameters in Powershell terminal (Node 20.13.0) #7487

Closed
2 tasks done
HannaTarasevich opened this issue May 8, 2024 · 1 comment
Closed
2 tasks done
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@HannaTarasevich
Copy link

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:
image

Expected Behavior

Npm should read all the parameters sent via Powershell like Yarn now does and as Npm did previously:
image

Steps To Reproduce

  1. 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
@HannaTarasevich HannaTarasevich added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels May 8, 2024
@milaninfy
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x
Projects
None yet
Development

No branches or pull requests

2 participants