ERROR: "init terminating in do_boot" /usr/local/bin/elixir: fork: Resource temporarily unavailable
<p>I'm getting the following error (Error 1 below) sometimes when I try to run <code>mix test</code> or <code>iex</code>. Once I quit out of all Elixir related shell tasks and restart Terminal, it will work again (for a while). If I try to open up a new Terminal window and start the Elixir shell (before quitting out of other ones), I get ERROR 2. <code>erl</code> will always work, so I don't think it's an Erlang issue.</p>

<p>I'll also get a popup in Sublime Text that says <code>Resource temporarily unavailable</code> if I try to save a file while all of this is going on.</p>

<p>ERROR 1:</p>

<pre><code>/usr/local/bin/elixir: fork: Resource temporarily unavailable
/usr/local/bin/erl: fork: Resource temporarily unavailable
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
</code></pre>

<p>ERROR 2:</p>

<pre><code>/usr/local/bin/iex: fork: Resource temporarily unavailable
/usr/local/bin/iex: fork: Resource temporarily unavailable
/usr/local/bin/iex: line 42: /Users/USER/Documents/elixir: No such file or directory
/usr/local/bin/iex: line 42: exec: /Users/USER/Documents/elixir: cannot execute: No such file or directory
</code></pre>

<p>Any idea what could be causing this, or how to find out?</p>