Javascript 运行“npm install”时,“x 包正在寻找资金”是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/58972251/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does 'x packages are looking for funding' mean when running `npm install`?
提问by Adam Hassan
I usually get "x packages are looking for funding."when running npm installon a reactproject. Any idea what that means?
我通常在一个项目上"x packages are looking for funding."运行时得到。知道这意味着什么吗?npm installreact
回答by ArunPratap
npmdecided to add a new command:
npm fundthat will provide more visibility to npm users on what dependencies are actively looking for ways to fund their work.
npm决定添加一个新命令:
npm fund这将为 npm 用户提供更多关于哪些依赖项正在积极寻找为其工作提供资金的方法的可见性。
npm installwill 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最后还会显示一条消息,让用户知道依赖项正在寻找资金,它看起来像这样:
$ 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.
运行npm fund <package>将在浏览器中打开为该给定包列出的 url。
回答by Stokely
None of the answers above helped me.
上面的答案都没有帮助我。
When you run "npm update" in the command prompt, when it is done it will recommend you type a new command called "npm fund".
当您在命令提示符下运行“npm update”时,它会建议您键入一个名为“npm fund”的新命令。
When you run "npm fund" it will list all the modules and packages you have installed that were created by companies or organizations that need MONEY for their IT projects.You will see a list of webpages where you can send them money. So "funds" means "Angular packages you installed that could use some money from you as an option to help support their businesses".
当你运行“npm fund”时,它会列出你安装的所有模块和包,这些模块和包是由需要资金用于 IT 项目的公司或组织创建的。您将看到一个网页列表,您可以在其中向他们汇款。所以“资金”的意思是“你安装的 Angular 包可以使用你的一些钱作为帮助支持他们业务的选项”。
Its basically a list of the modules you have that need contributions or donations of money to their projects and which list websites where you can enter a credit card to help pay for them.
它基本上是您需要为其项目捐款或捐款的模块列表,以及您可以输入信用卡以帮助支付费用的网站列表。
It blows my mind why Angular spits this out and recommends you run this command after an update. It adds yet again more mass confusion in how and why modules are added or fail. But its a way I guess for the command prompt to encourage you to go to your browser and type out of the url addresses to one of their donation websites listed when you run the commend.
让我大吃一惊的是,为什么 Angular 会吐出这一点,并建议您在更新后运行此命令。它再次在模块添加或失败的方式和原因方面增加了更多的混乱。但我猜它是命令提示符的一种方式,它鼓励您转到浏览器并在运行推荐时将 URL 地址输入到列出的捐赠网站之一。
回答by Mehdico
You can skip fund using:
您可以使用以下方法跳过基金:
npm install --no-fund YOUR PACKAGE NAME
npm install --no-fund YOUR PACKAGE NAME
For example :
例如 :
npm install --no-fund core-js
npm install --no-fund core-js

