How to fix timeout for packages on `npm install`?

后端 未结 6 1172
南旧
南旧 2021-01-17 19:20

When I run npm install it seems to work fine until part way installing packages. It seems to have no problem with the first half, but then after a while it will

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-17 19:58

    //npm config ls -l
    // add these 2 lines in .npmrc
    fetch-retry-maxtimeout = 6000000
    fetch-retry-mintimeout = 1000000
    
    //Siddharth Singh
    

提交回复
热议问题