diff options
author | 2021-11-10 15:48:02 -0800 | |
---|---|---|
committer | 2021-11-10 15:48:02 -0800 | |
commit | fadbcca99c9653b6d4c182afeabcd1180f67bc80 (patch) | |
tree | 2d5ae2cdce6ebd8f129e9aaf579aad96902ec687 | |
parent | 23bdc6f792ea775475363527fbd8bd30b7289744 (diff) | |
download | bun-fadbcca99c9653b6d4c182afeabcd1180f67bc80.tar.gz bun-fadbcca99c9653b6d4c182afeabcd1180f67bc80.tar.zst bun-fadbcca99c9653b6d4c182afeabcd1180f67bc80.zip |
Update README.md
-rw-r--r-- | README.md | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -462,7 +462,7 @@ If you're interested in adding a framework integration, please reach out. There' # FAQ -When running bun on an M1 (or Apple Silicon), if you see a message like this: +##### When running bun on an M1 (or Apple Silicon), if you see a message like this: > [1] 28447 killed bun create next ./test @@ -470,6 +470,22 @@ It most likely means you're running bun's x64 version on Apple Silicon. This hap The fix is to ensure you installed a version of Bun built for Apple Silicon. +##### error: Unexpected + +If you see an error like this: + + + +It usually means the max number of open file descriptors is being explicitly set to a low number. By default, Bun requests the max number of file descriptors available (which on macOS, is something like 32,000). But, if you previously ran into ulimit issues with e.g. Chokidar, someone on The Internet may have advised you to run `ulimit -n 8096`. + +That advice unfortunately **lowers** the hard limit to `8096`. This can be a problem in large repositories or projects with lots of dependencies. Chokidar (and other watchers) don't seem to call `setrlimit`, which means they're reliant on the (much lower) soft limit. + +To fix this issue: + +1. Remove any scripts that call `ulimit -n` and restart your shell. +2. Try agin, and if the error still occurs, try setting `ulimit -n` to an absurdly high number, such as `ulimit -n 65542` +3. Try again, and if that still doesn't fix it, open an issue + # Reference ### `bun run` |