NPM err! Unable to install any package solutions

Source: Internet
Author: User
Tags config error code execution

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.