Nodejs npm 镜像

设置镜像

npm config set registry https://registry.npm.taobao.org 将npm设置为淘宝镜像

cnpm config get registry 查看cnpm镜像

cnpm

cnpm 模块路径不一致,会有些奇怪的 bug ,不要使用 cnpm

安装:

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

一些命令会出现bug,不建议使用