yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
302 stars 192 forks source link

Can't "yarn install" anymore since last update #24

Closed ezera23 closed 2 years ago

ezera23 commented 2 years ago

Hi Yuichi,

I can't yarn install anymore since the last update. Any ideas?

➤ YN0000: ┌ Resolution step ➤ YN0000: └ Completed ➤ YN0000: ┌ Fetch step ➤ YN0013: │ @ethersproject/networks@npm:5.5.2 can't be found in the cache and w ➤ YN0013: │ @ethersproject/providers@npm:5.5.2 can't be found in the cache and ➤ YN0013: │ @ethersproject/random@npm:5.5.1 can't be found in the cache and wil ➤ YN0013: │ ethers@npm:5.5.3 can't be found in the cache and will be fetched fr ➤ YN0001: │ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close at new NodeError (node:internal/errors:371:5) at PassThrough.onclose (node:internal/streams/end-of-stream:134:30) at PassThrough.emit (node:events:390:28) at emitCloseNT (node:internal/streams/destroy:145:10) at processTicksAndRejections (node:internal/process/task_queues:82:21) ➤ YN0001: │ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close at new NodeError (node:internal/errors:371:5) at PassThrough.onclose (node:internal/streams/end-of-stream:134:30) at PassThrough.emit (node:events:390:28) at emitCloseNT (node:internal/streams/destroy:145:10) at processTicksAndRejections (node:internal/process/task_queues:82:21) ➤ YN0001: │ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close at new NodeError (node:internal/errors:371:5) at PassThrough.onclose (node:internal/streams/end-of-stream:134:30) at PassThrough.emit (node:events:390:28) at emitCloseNT (node:internal/streams/destroy:145:10) at processTicksAndRejections (node:internal/process/task_queues:82:21) ➤ YN0001: │ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close at new NodeError (node:internal/errors:371:5) at PassThrough.onclose (node:internal/streams/end-of-stream:134:30) at PassThrough.emit (node:events:390:28) at emitCloseNT (node:internal/streams/destroy:145:10) at processTicksAndRejections (node:internal/process/task_queues:82:21) ➤ YN0000: └ Completed in 2s 586ms ➤ YN0000: Failed with errors in 2s 795ms

ezera23 commented 2 years ago

I just remember, I used to have this problem....

just 'yarn set version latest' fixed the issue. Issue closed.

bpevreall commented 2 years ago

"Yarn set version berry" works for me if the other solution doesn't work