This fixes an issue I had locally when running yarn:
➤ YN0001: │ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:387:5)
at PassThrough.onclose (node:internal/streams/end-of-stream:142:30)
at PassThrough.emit (node:events:513:28)
at emitCloseNT (node:internal/streams/destroy:132:10)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
➤ YN0000: └ Completed in 0s 686ms
➤ YN0000: Failed with errors in 0s 820ms
This fixes an issue I had locally when running
yarn
:More info at: https://github.com/yarnpkg/berry/issues/3597#issuecomment-955872793