npm ERR! Error: connect ECONNREFUSED

后端 未结 5 1570
深忆病人
深忆病人 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:34

    Try:

    npm config set proxy null
    npm config set https-proxy null
    npm config set registry http://registry.npmjs.org/
    

    The first two lines will remove proxy's if there any.

    Third line will make npm download from the official package registry.

提交回复
热议问题