npm淘宝镜像和查看镜像设置

1.通过cnpm使用淘宝镜像:

  npm install -g cnpm --registry=https://registry.npm.taobao.org
2.将npm设置为淘宝镜像:

  npm config set registry https://registry.npm.taobao.org
3. 查看cnpm镜像设置:

  npm config get registry
4.查看设置:

  cnpm config list

 

posted @ 2021-12-01 17:15  Nature161  阅读(522)  评论(0编辑  收藏  举报