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

本站墙裂推荐,便宜好用的云服务器,点这儿购买
LIZHI_STORE
如果觉得我的文章对你有用,请随意赞赏