node.js环境搭建——bun安装出错,请帮看看。
环境是:windows10,wsl2,ubuntu22.04
出错提示是:
➜ nodeapp pnpm add bun @types/bun -D
Packages: +5
+++++
Progress: resolved 69, reused 62, downloaded 5, added 5, done
node_modules/.pnpm/bun@1.1.13/node_modules/bun: Running postinstall script, failed in 1.5s
…/.pnpm/bun@1.1.13/node_modules/bun postinstall$ node install.js
│ Failed to find package “@oven/bun-linux-x64”. You may have used the “–no-optional” flag when …
│ Failed to find package “@oven/bun-linux-x64-baseline”. You may have used the “–no-optional” f…
│ Error: Failed to install package “bun”
│ at /mnt/c/Users/laipz/nodeapp/node_modules/.pnpm/bun@1.1.13/node_modules/bun/install.js:33…
│ at Generator.throw (<anonymous>)
│ at rejected (/mnt/c/Users/laipz/nodeapp/node_modules/.pnpm/bun@1.1.13/node_modules/bun/ins…
│ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
└─ Failed in 1.5s at /mnt/c/Users/laipz/nodeapp/node_modules/.pnpm/bun@1.1.13/node_modules/bun
ELIFECYCLE Command failed with exit code 1.