Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Run `npm audit` for more detail " warning

Tags:

npm-install

In npm version 6.0.0, executing the npm install command reports this message:

up to date in 13.576s
[!] 52 vulnerabilities found [15904 packages audited]
Severity: 8 low | 40 moderate | 4 high
Run `npm audit` for more detail

Why does this appear, and how can it be disabled?

like image 269
tPointer Avatar asked May 12 '18 05:05

tPointer


People also ask

Should I always run npm audit fix?

If no security vulnerabilities are found, this means that packages with known vulnerabilities were not found in your package dependency tree. Since the advisory database can be updated at any time, we recommend regularly running npm audit manually, or adding npm audit to your continuous integration process.

What happens when you run npm audit fix?

The npm audit command will exit with a 0 exit code if no vulnerabilities were found. The npm audit fix command will exit with 0 exit code if no vulnerabilities are found or if the remediation is able to successfully fix all vulnerabilities.


1 Answers

It’s a new feature, introduced with npm@6. It shows all vulnerabilities your dependencies got (excluding peerDependencies)

You can disable the warning for single package installations with the --no-audit flag.

To deactivate it for all installations you can execute npm set audit false

like image 190
matthisb Avatar answered Sep 25 '22 20:09

matthisb