title: How do I solve: Error: Failed to list Firebase projects. See firebase-debug.log for more info
body: <p>So I'm minding my own business trying to initializing a Firebase project in my Angular app when all of the sudden I'm hit with this error:</p>
  <pre><code>Error: Failed to list Firebase projects. See firebase-debug.log for more info.
  </code></pre>
  <p>To get to that point, I followed the instructions in the documentation <a href="https://firebase.google.com/docs/cli" rel="noreferrer">here</a> which are basically run:</p>
  <pre><code>$ npm install -g firebase-tools
  
  $ firebase login // Turns out I was already logged in
  
  $ firebase projects:list // Make sure you can access your account.
  </code></pre>
  <p>Anyway, back to the error. &quot;Ok,&quot; I think. &quot;I'll just check out the log it's pointing me to.&quot; I open the log and see:</p>
  <pre><code>HTTP Error: 401, Request had invalid authentication credentials. 
  Expected OAuth 2 access token, login cookie or other valid authentication credential.
  See https://developers.google.com/identity/sign-in/web/devconsole-project.`
  `FirebaseError: HTTP Error: 401, Request had invalid authentication credentials.
  Expected OAuth 2 access token, login cookie or other valid authentication credential.
  See https://developers.google.com/identity/sign-in/web/devconsole-project.`
  </code></pre>
  <p>The part about &quot;invalid authentication credentials&quot; makes me think it has something to do with me not being logged into firebase but <code>firebase login</code> shows I am logged in.</p>
  <p>The URL in the log just takes me to the docs for using firebase auth in my app. Well, I would love to. But first I need this command to work, Firebase.</p>
  <p>Has anyone run into this/have a solution for it?</p>