0
点赞
收藏
分享

微信扫一扫

node-npm 设置淘宝镜像

mm_tang 2022-02-16 阅读 86

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 
举报

相关推荐

0 条评论