






















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"此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。