Skip to content

fix(exec): suppress run-script notices - #9895

Open
dev-sriramp wants to merge 1 commit into
npm:latestfrom
dev-sriramp:fix/exec-suppress-run-script-notices
Open

fix(exec): suppress run-script notices#9895
dev-sriramp wants to merge 1 commit into
npm:latestfrom
dev-sriramp:fix/exec-suppress-run-script-notices

Conversation

@dev-sriramp

@dev-sriramp dev-sriramp commented Aug 19, 2026

Copy link
Copy Markdown

What / Why

Restore the previous npx / npm exec behavior of suppressing internal run-script banners.

@npmcli/run-script@11 emits execution banners as npm notice run ... log messages. These notices are currently shown before the executed command’s output, for example with npx cypress --version.

This change suppresses notice run messages only for exec and explore, while preserving regular notices and the executed command’s own output.

Added a regression test to verify that run-script notices are suppressed for exec.

References

Fixes #9893

@dev-sriramp
dev-sriramp requested review from a team as code owners August 19, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] npm notice run npx, npm notice run 'cypress' --version

1 participant