Options (1)
-f, --forcebooleanForce an automatic fix to dependencies with vulnerabilities
Example:
npm audit fix {{[-f|--force]}}Examples (7)
Scan the project's dependencies for known vulnerabilities
Automatically fix vulnerabilities in the project's dependencies
npm audit fixForce an automatic fix to dependencies with vulnerabilities
npm audit fix [-f|--force]Update the lock file without modifying the `node_modules` directory
npm audit fix --package-lock-onlyPerform a dry run. Simulate the fix process without making any changes
npm audit fix --dry-runOutput audit results in JSON format
npm audit --jsonConfigure the audit to only fail on vulnerabilities above a specified severity
npm audit --audit-level info|low|moderate|high|criticalmade by @shridhargupta | data from tldr-pages