Log error:
1087 verbose stack error:getaddrinfo enotfound xn--rvg xn--rvg:80
1087 verbose stack at errnoexception (dns.js:27:10)
1087 verbose stack at getaddrinforeqwrap.onlookup [as OnComplete] (dns.js:78:26)
1088 verbose CWD E:\wzdsvn\web\redux\react-redux
1089 Error Windows_NT 6.1.7601
1090 Error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js "Install"
1091 Error Node v4.4.3
1092 Error NPM v2.15.1
1093 error code Enotfound
1094 Error errno Enotfound
1095 Error Syscall Getaddrinfo
1096 Error Network getaddrinfo enotfound XN--RVG xn--rvg:80
1096 Error Network This is the most likely not a problem with NPM itself
1096 Error network and is related to network connectivity.
1096 Error Network In the most cases is behind a proxy or has bad network settings.
1096 Error Network
1096 Error Network If You is behind a proxy, please make sure that the
1096 Error network ' Proxy ' config is set properly. See: "npm help config"
1097 verbose exit [1, True]
Workaround:
1. Execution:
NPM config get proxy
npm config get https-proxy
If the return value is not NULL, continue execution:
NPM config set proxy null
NPM config set https-proxy null
2. Execution:
NPM Config Set Registry http://registry.cnpmjs.org/
3. Directly edit the. npmrc file under C drive, and modify the value of registry to:
Registry = http://registry.cnpmjs.org
|
Reference:
Http://stackoverflow.com/questions/20397883/npm-doesnt-install-any-modules-network-socket-hangs-up ( Note that the value of registry is: http://registry.cnpmjs.org)
http://www.daliane.com/npm_err_wu_fa_an_zhuang_ren_he_bao_de_jie_jue_ban_fa/
PS: It is recommended to execute the 2nd or third method directly.