老的淘宝源地址 [http://npm.taobao.org] 和 [http://registry.npm.taobao.org] 域名已停止使用
1.npm
设置为淘宝源:
npm config set registry https://registry.npmmirror.com/
设置为默认源:
npm config set registry https://registry.npmjs.org/
2.yarn
设置为淘宝源:
yarn config set registry https://registry.npmmirror.com/
设置为默认源:
yarn config set registry https://registry.yarnpkg.com