1、查看npm镜像源的地址
npm config get registry
2、设置npm镜像源为淘宝镜像源
npm config set registry https://registry.npm.taobao.org
3、还原官方默认源
npx nrm use npm
注意:还原官方默认源使用的是npx命令。需要全局安装npm install npm -g
4、同时也可以用npx快速设置淘宝源
npx nrm use taobao
1、查看npm镜像源的地址
npm config get registry
2、设置npm镜像源为淘宝镜像源
npm config set registry https://registry.npm.taobao.org
3、还原官方默认源
npx nrm use npm
注意:还原官方默认源使用的是npx命令。需要全局安装npm install npm -g
4、同时也可以用npx快速设置淘宝源
npx nrm use taobao
1553
1715
2623

被折叠的 条评论
为什么被折叠?