1、安装 cnpm 淘宝镜像:

npm install -g cnpm --registry=https://registry.npm.taobao.org

2、将npm设置为淘宝镜像:

npm config set registry https://registry.npm.taobao.org

3.、通过npm查看cnpm镜像设置:

npm config get registry 

4、通过cnpm查看cnpm镜像设置:(相当于使用cnpm)

cnpm config get registry 
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐