1、查看當(dāng)前源
?yarn config get registry
2、切換為淘寶源
?yarn config set registry https://registry.npm.taobao.org
3、切換為自帶的
?yarn config set registry https://registry.yarnpkg.com
npm 切換淘寶鏡像
npm config?set?registry http://registry.npm.taobao.org
?yarn config get registry
?yarn config set registry https://registry.npm.taobao.org
?yarn config set registry https://registry.yarnpkg.com
npm 切換淘寶鏡像
npm config?set?registry http://registry.npm.taobao.org