TIL: How to hide 'npm fund' message

May 10, 2020

As of npm version 6.13.0, npm now displays this message after running npm install:

$ npm install

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

Supporting the packages powering the JavaScript ecosystem is an important cause. But as others have found, you might not want to see this message every single time you run npm.

Remove the message with one command

To remove it, you could include a --no-fund flag every time you run npm install... or instead you can remove it with just one command:

npm config set fund false

Done! This will add fund=false to your ~/.npmrc file (more on the npmrc file) so you shouldn't see the funding message again.