npm gets stuck on fetchMetadata -> network

前端 未结 11 1772
栀梦
栀梦 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:24

    Check if there any issues with proxies if you using any. You can try also to set npm's endpoint manually:

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

提交回复
热议问题