Skip to content

[BUG] NPM 10.6.0 outputs new lines when running npx #7419

@broksonic21

Description

@broksonic21

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

With NPM 10.5.2, logs are clear when running npx:

~/git/personal/test (main ✔) npx eslint

but with 10.6.0, there's new logging that shows up - this breaks tools looking for outputted strings in the results, as it's unexpected. I'm seeing this break some github actions expecting results from commands too: see wearerequired/lint-action#789

It's happening with any and all npx commands

~/git/personal/test (main ✔) npx eslint

> [email protected] npx
> eslint

Expected Behavior

No unexpected logs being written out

Steps To Reproduce

Using npm 10.5.2
run any command with npx - don't get the logs

Using npm 10.6.0
run any command with npx - get the log lines

Environment

  • npm: 10.6.0
  • Node.js: 20.12.2
  • OS Name: Mac
  • System Model Name: MacBook Pro

Note: also seeing on Ubuntu on Github Actions

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 0will get attention right awayRelease 10.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions