title: Error: An unexpected error has occurred when running firebase login command
body: <p>firebase login --debug
  i  Firebase optionally collects CLI usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (<a href="https://policies.google.com/privacy" rel="nofollow noreferrer">https://policies.google.com/privacy</a>) and is not used to identify you.</p>
  
  <p>? Allow Firebase to collect CLI usage and error reporting information? Yes
  i  To change your data collection preference at any time, run <code>firebase logout</code> and log in again.</p>
  
  <p>Visit this URL on this device to log in:</p>
  
  <blockquote>
    <p><a href="https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&amp;scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&amp;response_type=code&amp;state=151882733&amp;redirect_uri=http%3A%2F%2Flocalhost%3A9005" rel="nofollow noreferrer">https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&amp;scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&amp;response_type=code&amp;state=151882733&amp;redirect_uri=http%3A%2F%2Flocalhost%3A9005</a></p>
  </blockquote>
  
  <p>Waiting for authentication...</p>
  
  <pre><code>[2020-04-21T13:30:57.183Z] Error: spawn cmd ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
      at onErrorNT (internal/child_process.js:415:16)
      at process._tickCallback (internal/process/next_tick.js:63:19)
  </code></pre>
  
  <p>Error: An unexpected error has occurred.</p>
  
  <p>Having trouble? Try again or contact support with contents of firebase-debug.log</p>