Loading

npm 更改为淘宝镜像的方法

1、命令行临时使用指定镜像

npm --registry https://registry.npmmirror.com install express

2、永久使用指定镜像

npm config set registry https://registry.npmmirror.com

3、使用cnpm

npm install -g cnpm --registry=https://registry.npmmirror.com

 

posted @ 2021-12-08 11:08  请叫我王小胖  阅读(814)  评论(0编辑  收藏  举报