1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00
Files
til/javascript/turn-off-npm-funding-message.md
2024-02-21 13:20:49 -06:00

32 lines
871 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Turn Off npm Funding Message
When you run `npm install`, you'll see a few different details output to your
terminal. One you are probably used to seeing is the one about packages looking
for funding.
```bash
npm install
up to date, audited 253 packages in 2s
88 packages are looking for funding
run `npm fund` for details
6 vulnerabilities (1 low, 4 moderate, 1 high)
```
If for whatever reason you need to turn off this (e.g. for scripting and CI
purposes), you can globally configure it with the `npm config` command.
```bash
npm config set fund false --location=global
```
Run an `npm install` again and the funding message will no longer show.
This edits the `npmrc` located in the `/etc` directory of wherever your current
version of Node is installed. Running `npm config edit --global` will open you
up to this file as well.
h/t Dillon Hafer