npm install -g yarn
<aside> 💡 也可以考虑安装 cnpm: npmmirror.com ,或者不配置镜像的情况下配置代理到 Clash(略)
$ npm install -g cnpm --registry=https://registry.npmmirror.com
</aside>
npm get registry
npm config set registry <https://registry.npmmirror.com
>
npm config set registry <https://registry.npmjs.org/
>
yarn config get registry
yarn config set registry <https://registry.npmmirror.com
>