npm ERR! network getaddrinfo ENOTFOUND

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

    First I check whether proxy is set for me or not using this :

    npm config get proxy
    

    It returned null then I run this command

    npm config set strict-ssl=false
    

    It disable strict-ssl for that cmd session.

    You can see complete list of config using this

    npm config list ls -l
    

提交回复
热议问题