1.經過config命令javascript
npm config set registry http://registry.cnpmjs.org npm info underscore
2.命令行指定java
npm --registry http://registry.cnpmjs.org info underscore
3.編輯node_modules\npm.npmrc加入下面內容node
registry = http://registry.cnpmjs.org
注:taobao的npmnpm
地址:https://registry.npm.taobao.org
命令行