npm gets stuck on fetchMetadata -> network

前端 未结 11 1778
栀梦
栀梦 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

    Having same problem. Fixed it by switching to correct version of node required by the project.

    My project needed node >=v4.3 and <=v5.

    1) Check node version being used by nvm ls

    2) Use nvm use [version] or else install the specific version. if you don't have.

提交回复
热议问题