npm audit

Run a security audit

Subcommands

NameDescription
fixIf the fix argument is provided, then remediations will be applied to the package tree

Options

NameDescription
-w, --workspace <workspace...>Enable running a command in the context of the configured workspaces of the current project
-ws, --workspacesEnable running a command in the context of all the configured workspaces
--audit-level <audit>The minimum level of vulnerability for npm audit to exit with a non-zero exit code
--package-lock-onlyCurrent operation will only use the package-lock.json, ignoring node_modules
--jsonShow output in json format
--omit <Package type>
  • Repeatable ♾
  • Repeatable 3x