npm gets stuck on fetchMetadata -> network

前端 未结 11 1769
栀梦
栀梦 2020-12-24 04:32

My npm is getting stuck a lot, whether its npm install from package.json or individual packages.

Right now, I\'m not even able to sudo npm install

11条回答
  •  孤独总比滥情好
    2020-12-24 05:15

    Did you configured a proxy? See if this returns something:

    npm config get https-proxy
    npm config get proxy
    

    If you have values configured there, they might not match correct ones. If you shouldn't be using a proxy, you can delete them:

    npm config delete https-proxy
    npm config delete proxy
    

    Docs: https://docs.npmjs.com/cli/config

提交回复
热议问题