Skip to content

npm Configuration

npm:
  enabled: true
  repository:
    - name: npm
      registry: https://registry.npmjs.org
      scan-manifest: true
      scan-package: true
      work-mode: strict_wait
      url-encoded-config: true

Client URL:

npm config set registry https://osa-proxy.example.com/npm/
npm view lodash version

Equivalent .npmrc entry:

registry=https://osa-proxy.example.com/npm/

During migration, replace the registry value in .npmrc from Nexus, Artifactory, or https://registry.npmjs.org with https://osa-proxy.example.com/npm/. Credentials remain in npm settings.

Страница была полезна?