yarn

共找到 1 篇文章

1 篇文章
1 分钟阅读
1500 字数
npm

yarn 问题搜集

yarn install 报错: [ERR_STREAM_PREMATURE_CLOSE]: Premature close 🔗 1 2 3 4 5 6 ➤ 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:136:30) at PassThrough.emit (node:events:526:28) at emitCloseNT (node:internal/streams/destroy:145:10) at processTicksAndRejections (node:internal/process/task_queues:82:21) 方案 it has been fixed in latest yarn, so please upgrade: yarn set version latest. As v17 is not a lts, please use node v16/v14 in production (node:latest => node:lts).