Skip to main content

NPM

Supported Commands​

Use these commands with the RepoFlow server:

Command Line
npm install
npm search <query>
npm audit
npm login --auth-type legacy
npm logout
npm publish
npm dist-tag add <package>@<version> <tag>
npm dist-tag rm <package> <tag>
npm dist-tag ls <package>

Note: Commands that run locally are not listed here but will work as expected.

Vulnerability Audits​

RepoFlow supports npm audit through the Bulk Advisory endpoint used by npm 7 and newer. The legacy Quick Audit endpoint used by npm 6 is not supported.

  • Local repositories return findings from RepoFlow vulnerability scans. Missing scans for stored, requested versions are run before returning results. Vulnerability scanning must be enabled.
  • Remote repositories combine upstream advisories with existing scan findings for cached packages. Audit requests do not start new cache scans. Upstream failures return an error rather than a partial report.
  • Virtual repositories combine advisories from their child repositories.

Download rules that hide packages or versions also exclude them from audit requests and results. Local findings cover scanned versions; missing packages are not scanned by an audit request.