npm ERR! network getaddrinfo ENOTFOUND

前端 未结 17 994
傲寒
傲寒 2020-12-02 18:12

I am getting npm ERR! network getaddrinfo ENOTFOUND error while trying to install any package using NPM. I know there are numerous threads on the same issue but

17条回答
  •  感动是毒
    2020-12-02 18:53

    does your proxy require you to authenticate? because if it does, you might want you configure your proxy like this.

    placeholder names. username is a placeholder for your actual username. password is a placeholder for your actual password. proxy.company.com is a placeholder for your actualy proxy *port" is your actualy port the proxy goes through. its usualy 8080

    npm config set proxy "http://username:password@proxy.company.com:port"
    npm config set https-proxy "http://username:password@proxy.company.com:port"
    

提交回复
热议问题