npm镜像设置

查看镜像列表 

npm isntall -g nrm

nrm ls

根据镜像列表地址来设置镜像

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

查看镜像

npm config get registry

npm官方镜像

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

淘宝镜像

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

或者

npm config set registry https://registry.npm.taobao.org     npm   install

或者

npm config set registry https://registry.npmmirror.com npm   install

你可能感兴趣的:(npm,前端,node.js)