NPM

查询当前镜像

npm get registry

设置为淘宝镜像

npm config set registry https://registry.npmmirror.com

设置为官方镜像

npm config set registry https://registry.npmjs.org/

YARN

查询当前镜像

yarn config get registry

设置为淘宝镜像

yarn config set registry https://registry.npmmirror.com

设置为官方镜像

yarn config set registry https://registry.yarnpkg.com
版权声明
本文作者 珂泽
本文链接 https://www.kezez.com/archives/249.html
共享协议 CC BY-NC-SA 4.0
引用规则 非商业转载及引用请注明出处(作者、原文链接),商业转载请联系作者获得授权。
QQ 群组 962303102
最后修改:2023 年 02 月 06 日
如果觉得我的文章对你有用,请随意赞赏