verdaccio-audit is a middleware plugin for Verdaccio, a lightweight private npm proxy registry. Its primary function is to bypass, modify, or control the default npm audit behavior when packages are retrieved through the Verdaccio instance. This empowers organizations to manage vulnerability scanning, enabling integration with internal security tools, ignoring specific advisories, or completely disabling external audit calls to `npmjs.com` for enhanced performance or privacy. The package is currently at version 10.2.4 and is an active component within the Verdaccio monorepo, which typically undergoes regular patch and minor updates across its various packages. A key differentiator of verdaccio-audit is its capability to provide granular control over the audit process directly within a private registry environment, offering a flexible alternative to relying solely on external `npm audit` services.
npm install verdaccio-auditVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install the `verdaccio-audit` package and configure it within Verdaccio's `config.yaml` to disable external npmjs.com audit requests, providing a custom message.
Ensure your Node.js version meets the minimum requirements of your Verdaccio core installation (e.g., Node.js 16 or 18 for Verdaccio v6.x) and that the `verdaccio-audit` version is compatible with your Verdaccio core.
Always consult the Verdaccio monorepo release notes and migration guides when performing major version upgrades of Verdaccio or its plugins to ensure compatibility and apply any required configuration adjustments.
Thoroughly review the `verdaccio-audit` documentation for the exact configuration syntax. Utilize a YAML linter or validator to confirm the correctness of your `config.yaml` before initiating Verdaccio.
Install the package using `npm install verdaccio-audit` or `yarn add verdaccio-audit` in your Verdaccio storage path or a globally accessible location. Double-check that 'audit' is correctly specified under the `middleware` section in `config.yaml`.
Ensure that `middleware:` is correctly defined at the top level of `config.yaml` and that `audit:` is an appropriately indented child of `middleware:`, followed by its configuration options.
Upgrade your Node.js runtime to a version compatible with your Verdaccio core and the `verdaccio-audit` plugin. For recent Verdaccio versions, this typically means Node.js 16 or 18.