How to turn off “x packages are looking for funding” in npm

Posted on

Maintainers of open source projects often finance their work through sponsorships and donations, and npm won’t ever let us forget it. The output of an npm install includes a mention of how many of the packages it installed are looking for funding:

% npm install

added 383 packages, and audited 384 packages in 4s

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

found 0 vulnerabilities
% npm install

added 383 packages, and audited 384 packages in 4s

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

found 0 vulnerabilities

You can turn it off in your .npmrc on a per-project (/path/to/project/.npmrc) or per-user (~/.npmrc) basis by configuring the fund option:

fund = false
fund = false

Running npm install again no longer shows that funding message:

% npm install

added 383 packages, and audited 384 packages in 4s

found 0 vulnerabilities
% npm install

added 383 packages, and audited 384 packages in 4s

found 0 vulnerabilities

If you’re in a position to fund the continued development of the packages that enable your work, run npm fund occasionally to find ones looking for support.

Debug
none
Grid overlay