'What does 'x packages are looking for funding' mean when running `npm install`?
I usually get "x packages are looking for funding." when running npm install on a react project. Any idea what that means?
Solution 1:[1]
npm decided to add a new command:
npm fund that will provide more visibility to npm users on what dependencies are actively looking for ways to fund their work.
npm install will also show a single message at the end in order to let user aware that dependencies are looking for funding, it looks like this:
$ npm install
packages are looking for funding.
run `npm fund` for details.
Running npm fund <package> will open the url listed for that given package right in your browser.
Solution 2:[2]
First of all, try to support open source developers when you can, they invest quite a lot of their (free) time into these packages. But if you want to get rid of funding messages, you can configure NPM to turn these off. The command to do this is:
npm config set fund false --global
... or if you just want to turn it off for a particular project, run this in the project directory:
npm config set fund false
For details why this was implemented, see @Stokely's and @ArunPratap's answers.
Solution 3:[3]
You can skip fund using:
npm install --no-fund YOUR PACKAGE NAME
For example:
npm install --no-fund core-js
If you need to install multiple packages:
npm install --no-fund package1 package2 package3
Solution 4:[4]
first, it's not an error or warning. it's basically a message to you to donate some money if you wish to the company/people or individual who built a package you have installed/used in your project, to see which package, simply type in your terminal
npm fund
and a list of the packages names and their website URLs underneath to donate. I hope this is helpful..
Solution 5:[5]
npm config set false --global
npm config set fund false
Solution 6:[6]
npm fund [<pkg>]
This command retrieves information on how to fund the dependencies of a given project. If no package name is provided, it will list all dependencies that are looking for funding in a tree-structure in which are listed the type of funding and the url to visit.
The message can be disabled using: npm install --no-fund
Solution 7:[7]
These are Open Source projects (or developers) which can use donations to fund to help support their business.
In npm the command npm fund will list the urls where you can fund
In composer the command composer fund will do the same.
While there are options mentioned above using which one can use to get rid of the funding message, but try to support the cause if you can.
Solution 8:[8]
npm install --silent
Seems to suppress the funding issue.
Solution 9:[9]
I would recommend against suppressing the funding message. It is informational only. At the very least they would give you some idea of one the potential risks that the 3rd party npm package is facing.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Jeroen Landheer |
| Solution 3 | |
| Solution 4 | |
| Solution 5 | Sven Eberth |
| Solution 6 | Anupama Karunarathna |
| Solution 7 | Chandraarnav |
| Solution 8 | Sven Eberth |
| Solution 9 | Haris Beg |
