Skip to content

Commit 92dfeb3

Browse files
authored
docs: Add workaround for Homebrew Bun ENOENT error to Bun guide (#3125)
1 parent b1e78a6 commit 92dfeb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guides/frameworks/bun.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import CliViewRunStep from "/snippets/step-view-run.mdx";
2323
## Known issues
2424

2525
- Certain OpenTelemetry instrumentation will not work with Bun, because Bun does not support Node's `register` hook. This means that some libraries that rely on this hook will not work with Bun.
26+
- If Bun is installed via Homebrew (e.g. `/opt/homebrew/bin/bun`), you may see an `ENOENT: spawn /Users/<you>/.bun/bin/bun` error because the CLI expects Bun at the default install path. **Workaround:** create a symlink:
27+
```bash
28+
mkdir -p ~/.bun/bin && ln -s $(which bun) ~/.bun/bin/bun
29+
```
2630

2731
## Initial setup
2832

0 commit comments

Comments
 (0)