<p dir="auto">Atom is open but then subsequent windows and instances cannot be opened from the terminal and receive this error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."><pre class="notranslate"><code class="notranslate">Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app.
</code></pre></div>
<p dir="auto">Found instance of it in the Atom Script<br>
<a href="https://github.com/atom/atom/blob/master/atom.sh#L58">https://github.com/atom/atom/blob/master/atom.sh#L58</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # Exit if Atom can't be found
  if [ -z &quot;$ATOM_PATH&quot; ]; then
    echo &quot;Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app.&quot;
    exit 1
  fi"><pre class="notranslate"><code class="notranslate"> # Exit if Atom can't be found
  if [ -z "$ATOM_PATH" ]; then
    echo "Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app."
    exit 1
  fi
</code></pre></div>
<p dir="auto">Edit: On,  OSX 10.9, ZSH, Atom .96</p>
<p dir="auto">Atom won't launch from the terminal in OSX 10.9.3. Here is the output:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/586656/2911417/597a5b00-d65b-11e3-84c7-16cd11aea96d.png"><img src="https://cloud.githubusercontent.com/assets/586656/2911417/597a5b00-d65b-11e3-84c7-16cd11aea96d.png" alt="image" style="max-width: 100%;"></a></p>