fix: don't print the funding message for global installs #9927

Merged
github-actions[bot] opened 5:21pm on August 27, 2026 wanted to merge 1 commit into npm/cli release/v11 from
backport/v11/9864

Pull Request Overview

  • Opened on August 27, 2026
  • Status Merged
  • Commit count 1 with first commit August 12, 2026

Total Delta

0 Total Diff Delta

Open Days

Open 17 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
N/A 3.0 days Issue creation to work beginning
 
11.0 days Authoring 1 commit before pull request opened for review
 
0.3 days Awaiting first review
 
0.4 days Revising work with 0 commits in response to 1 review that left 0 comments
 
15.0 days Merge to deploy (still awaiting deployment)

Total time for pull request 11.7 business days from first commit authored to merge
Still awaiting deployment

Author avatar

fix: don't print the funding message for global installs

Backport of #9864 to release/v11.

Is there an existing issue for this?

  • [x] I have searched the existing issues

This issue exists in the latest npm version

  • [x] I am using the latest npm

This is not just a request to bump a dependency for a CVE

  • [x] This is not solely a request to bump a dependency for a CVE

Current Behavior

It only returns my username and exits

Expected Behavior

I see a list of packages looking for funding

Steps To Reproduce

  1. I install a global package
  2. I get told to run npm fund to see packages which need funding, of which there are supposedly 15.
  3. I run npm fund
  4. It only returns my username and exits

Environment

  • npm: 11.19.0
  • Node.js: v25.9.0
  • OS Name: Windows 11
  • System Model Name:
  • npm config: ```ini ; "builtin" config from C:\Users\kortlepel\AppData\Roaming\npm\node_modules\npm\npmrc

prefix = "C:\Users\kortlepel\AppData\Roaming\npm"

; node bin location = C:\Program Files\nodejs\node.exe ; node version = v25.9.0 ; npm local prefix = C:\Users\kortlepel ; npm version = 11.19.0 ; cwd = C:\Users\kortlepel\source\repos\smartgis\smartgis-server ; HOME = C:\Users\kortlepel ; Run npm config ls -l to show all defaults. ```

This also happens on my ArchLinux machine.

PR was closed without comments.