前端npm和yarn更换国内淘宝镜像
NPM
查询当前镜像
npm get registry
(图片来源网络,侵删)
设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org/ (旧地址)
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.npm.taobao.org/ (旧地址)
yarn config set registry https://registry.npmmirror.com/ (最新地址)
设置为官方镜像
yarn config set registry https://registry.yarnpkg.com
(图片来源网络,侵删)
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...