Welcome

首页 / 脚本样式 / Nodejs / NPM安装及相关配置

设置镜像源:

npm config set registry http://registry.npmmirror.com


npm install -g cnpm --registry=http://registry.npmmirror.com


清除缓存

npm cache verify


恢复安装:

npm config set registry https://registry.npmjs.org