安装Node.js和npm配置
node --version查看npm版本
npm --version安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.orgnpm 配置显示
npm config list获取npm镜像地址
npm config get registry镜像地址替换成淘宝地址
npm config set registry http://registry.npm.taobao.org/恢复默认镜像地址
删除包
增加npm-run-all
快速下载node-sass等
参考
Last updated
Was this helpful?