npm ERR! network getaddrinfo ENOTFOUND

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

    Make sure to use the latest npm version while installing packages using npm.

    While installing JavaScript, mention the latest version of NodeJS. For example, while installing JavaScript using devtools, use the below code:

    devtools i --javascript nodejs:10.15.1
    

    This will download and install the mentioned NodeJS version. Try installing the packages with npm after updating the version. This worked for me.

提交回复
热议问题