Open jordanbertasso opened 1 year ago
I believe the open file limit has been reached. Usually, for large projects (especially when using file watchers), the limit needs to be increased. I'm not too familiar with macOS, but this post should provide some help.
Running sudo launchctl limit maxfiles 65536 200000
seems to have fixed it, but I believe that only lives as long as the shell session it was run in.
My concern is other users would run into this as well. Maybe it's worth adding some information about it into the error message or putting it in a FAQ?
npm and yarn don't have the same issue which is why I raised it here
NPM and Yarn both run on Node.js, which uses a separate blocking I/O threadpool where async operations are offloaded. The reason they do not have a "too many open files" error is since both write to the filesystem a single file at a time, which does not cause a lot of files to be open at once.
I'll pin this issue so others can find it more easily.
I'm getting a too many open files error when running
cotton install
.OS: macOS Monterey - 12.6 (21G115) Arch: Apple M1 npm dependencies:
Error and stack trace: