npm config set registry http://registry.cnpmjs.org
npm info underscore (如果上面配置正确这个命令会有字符串response)
npm --registry http://registry.cnpmjs.org info underscore
registry = http://registry.cnpmjs.org
npm config set proxy [url=]http://server:port[/url]
npm config set https-proxy [url=]http://server:port[/url]
npm config set proxy [url=]http://username:password@server:port[/url]
npm confit set https-proxy [url=]http://username:password@server:port[/url]
使用nrm快速切换npm源npm config set registry "http://registry.npmjs.org/"
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |