npm ERR! network getaddrinfo ENOTFOUND

前端 未结 17 1015
傲寒
傲寒 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:50

    Take a look at your HTTP_PROXY and HTTPS_PROXY environment variables.

    I thought mine were set correctly, as http://username:password@proxyhost:proxyport, but it turned out that they were actually causing the problem! After deleting those variables, and restarting the commant prompt, the npm commands worked again.

提交回复
热议问题