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] Powershell npm run parameters are lost #5435

Open
2 tasks done
banli17 opened this issue Aug 29, 2022 · 3 comments
Open
2 tasks done

[BUG] Powershell npm run parameters are lost #5435

banli17 opened this issue Aug 29, 2022 · 3 comments
Assignees
Labels
Bug thing that needs fixing platform:windows is Windows-specific

Comments

@banli17
Copy link

banli17 commented Aug 29, 2022

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 print process.argv in powershell,use npm it will lose the parameter --debug,But pnpm won't

a.js

console.log(process.argv)

image

When I use pnpm run the result is correct, but with npm run I need to use --- or quotes,

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • npm: 8.18.0
  • Node.js: v16.13.1
  • powershell: 7.2.5 or 5.1
@banli17 banli17 added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Aug 29, 2022
@jhasheng
Copy link

jhasheng commented Nov 18, 2023

node: 16.13.0(32bit)
npm: 9.2.0
nvm: 1.1.9
windows terminal: 1.18.2822.0

same question

windows terminal not working
image

windows cmd ok
image

@jhasheng
Copy link

add quotes working

image

@lukekarrys lukekarrys added platform:windows is Windows-specific and removed Release 8.x work is associated with a specific npm 8 release Needs Triage needs review for next steps labels May 17, 2024
@lukekarrys lukekarrys self-assigned this May 17, 2024
@kleinfreund
Copy link

Duplicate of #3136.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing platform:windows is Windows-specific
Projects
None yet
Development

No branches or pull requests

4 participants