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] 10.6.0 regresses stdout pollution on npx/npm exec #7435

Closed
2 tasks done
lorenzogrv opened this issue Apr 29, 2024 · 5 comments
Closed
2 tasks done

[BUG] 10.6.0 regresses stdout pollution on npx/npm exec #7435

lorenzogrv opened this issue Apr 29, 2024 · 5 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@lorenzogrv
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

npm pollutes stdtout when using npx/npm exec

Old behavior:

$ npm --version
10.2.4
$ npm exec -- /bin/bash -c 'echo what?'
what?
$ npm install -g npm@latest

removed 43 packages, and changed 74 packages in 710ms

24 packages are looking for funding
  run `npm fund` for details

New behavior

$ npm --version
10.6.0
$ npm exec -- /bin/bash -c 'echo what?'

> @grupomarea/[email protected] npx
> /bin/bash -c echo what?

what?

This seems similar to #7354

Expected Behavior

$ npm --version
10.6.0
$ npm exec -- /bin/bash -c 'echo what?'
what?

Steps To Reproduce

  1. Follow the steps above

Environment

  • system
$ cat /etc/lsb-release 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=21.1
DISTRIB_CODENAME=vera
DISTRIB_DESCRIPTION="Linux Mint 21.1 Vera"
$ uname -i
x86_64
  • npm config:
; node version = v20.11.1
; npm version = 10.6.0
@lorenzogrv lorenzogrv added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Apr 29, 2024
@lorenzogrv
Copy link
Author

lorenzogrv commented Apr 29, 2024

For a sake of completeness, this does not happen on 10.5.0

$ npm install -g [email protected]
# ...
$ npm exec -- /bin/bash -c 'echo what?'
what?

PS: Why v10.6.0 is tagged @latest when current docs changelog states v10.5.2 is latest CLI?

@lorenzogrv
Copy link
Author

@wraithgar seems also related to npm/statusboard#829

@milaninfy
Copy link

This is duplicate of #7419 and it is fixed in this PR #7421.

@lorenzogrv
Copy link
Author

This is duplicate of #7419 and it is fixed in this PR #7421.

Ok, sorry the noise

@milaninfy
Copy link

No Problem. Thank you for testing with latest npm.

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