为nodejs的npm设置代理

为nodejs的npm设置代理
npm config set proxy=http://127.0.0.1:8087

清除npm的代理命令
npm config delete proxy
npm config delete http-proxy
npm config delete https-proxy

查看修改后的配置

npm get [key]

eg. npm get proxy

#设置NodeJS源

npm config set registry=http://registry.npmjs.org

npm config set registry=”http://r.cnpmjs.org”

#或者使用国内镜像,速度更快哦
npm config set registry=”http://registry.npm.taobao.org/”

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

npm查找模块信息

npm info ionic

关闭npm的https
npm config set strict-ssl false