macOS报错——Error: The maximum number of open files on this system has been reached

完整的报错信息:

Error: The maximum number of open files on this system has been reached. Use `ulimit -n` to increase this limit.

按照提示:

(base)  ⇄ ↺ ✿ ♬  ~  ulimit -n
256
(base)  ⇄ ↺ ✿ ♬  ~  ulimit -Sn 524288
(base)  ⇄ ↺ ✿ ♬  ~  ulimit -Hn 10485760
(base)  ⇄ ↺ ✿ ♬  ~  ulimit -n          
524288

参考: