npm 镜像地址设置; 安装cnpm

设置淘宝镜像

  • 恢复默认镜像地址
    删除即可恢复默认镜像
    npm config delete registry

  • 1、获取配置镜像地址
    npm get registry

  • 2、配置镜像地址
    npm config set registry http://registry.npm.taobao.org/

安装cnpm

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

查看是否成功 cnpm -v

posted @ 2021-06-23 22:37  朝日asahi  阅读(171)  评论(0编辑  收藏  举报