npm 安装淘宝镜像


1、用阿里定制的cnpm命令代替默认的npm

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

2、检查是否安装成功

cnpm -v

相关