在公司内部网络(需设置代理)安装好了node.js和npm但是gulp总是安装不上。
因为报错信息里提到了代理问题,修改了配置文件.npmrc:
registry=https://registry.npm.taobao.o...
proxy=公司代理地址
还是不行
npm-debug.log文件信息如下:
33 error Windows_NT 6.1.7601
34 error argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "-g" "install" "gulp"
35 error node v6.3.1
36 error npm v3.10.3
37 error code ECONNRESET
38 error network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 3128 3128:80
39 error network This is most likely not a problem with npm itself
39 error network and is related to network connectivity.
39 error network In most cases you are behind a proxy or have bad network settings.
39 error network
39 error network If you are behind a proxy, please make sure that the
39 error network 'proxy' config is set properly. See: 'npm help config'
40 verbose exit [ 1, true ]
请各位大神看看,这个要怎么设置?
换成淘宝的cnpm滤镜试下。。