Node.js · Junior · Question 30 of 75
What does npm audit do?
- 1Measures how long each script takes
- ✓Correct answer: Checks installed dependencies against a database of known vulnerabilities
- 3Checks code style
Explanation
npm audit fix tries to upgrade to safe versions within your ranges. Not every warning is relevant: check whether the vulnerable code is actually reachable in your app.