npm ERR! Error: connect ECONNREFUSED

后端 未结 5 1560
深忆病人
深忆病人 2020-11-30 06:36

I\'m trying to update the npm (node package manager) using the command: npm install npm@latest -g but I\', getting the following error in the command prompt:

does

5条回答
  •  無奈伤痛
    2020-11-30 07:14

    May be this will help someone in need. I turned to this solution after wasting good 2 hours as my corporate proxy server on work laptop was not getting resolved..!

    I removed both proxy and https-proxy from .npmrc file and set only

    npm config set registry http://registry.npmjs.org/

    Then, I am able to successfully run npm install -g create-react-app

    .npmrc file can be found here at C:\Users\\.npmrc

    Cheers! Happy Quarantine Development :p

提交回复
热议问题