npm gets stuck on fetchMetadata -> network

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

    I had this same problem, with several different installs hanging on fetchMetaData, including the install of yarn mentioned above. I am on a Mac and solved it by updating npm as follows:

    npm install npm@latest -g
    

    So if you are encountering this issue on Mac, then try updating and see if it solves your problem.

提交回复
热议问题