npm设置镜像地址

设置淘宝源

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

查看源设置

npm config get registry

为本次安装设置淘宝源

npm install yarn --registry=https://registry.npm.taobao.org
posted @ 2022-05-10 15:51  YIueil  阅读(216)  评论(0编辑  收藏  举报