Example configuration for setting up Yarn to use a custom NPM registry and authentication.
To configure Yarn to use a custom NPM registry and enable authentication for the npm
scope, use the following commands:
Set the NPM registry server for the
npm
scope:yarn config set npmScopes.npm.npmRegistryServer "https://registry.npmjs.org"
Always authenticate for the
npm
scope:yarn config set npmScopes.npm.npmAlwaysAuth true
Set the authentication token for the
npm
scope:yarn config set npmScopes.npm.npmAuthToken "YOUR_NPM_TOKEN"