设置npm镜像源
2019-07-01 本文已影响0人
cs0710
尽量不要使用cnpm,因为cnpm安装的模块路径比较奇怪,导致package有时不能被正常识别!
// 为npm设置镜像源
npm config set registry https://registry.npm.taobao.org --global
// 为yarn设置镜像源
yarn config set registry https://registry.npm.taobao.org --global
尽量不要使用cnpm,因为cnpm安装的模块路径比较奇怪,导致package有时不能被正常识别!
// 为npm设置镜像源
npm config set registry https://registry.npm.taobao.org --global
// 为yarn设置镜像源
yarn config set registry https://registry.npm.taobao.org --global