title: firebase deployment issue with a react app
body: <p>I'm trying to deploy my react app on firebase but i get this error:</p>
  <blockquote>
  <p>Error: Failed to list Firebase projects. See firebase-debug.log for more info.</p>
  </blockquote>
  <p><em><strong>and in the <em><strong>firebase-debug.log</strong></em> file this shows:</strong></em></p>
  <p>[info] First, let's associate this project directory with a Firebase project.</p>
  <p>[info] You can create multiple project aliases by running firebase use --add,</p>
  <p>[info] but for now we'll just set up a default project.</p>
  <p>[info]
  [debug] [2021-03-20T19:18:31.200Z] &gt; refreshing access token with scopes: []</p>
  <p>[debug] [2021-03-20T19:18:31.202Z] &gt;&gt;&gt; HTTP REQUEST POST <a href="https://www.googleapis.com/oauth2/v3/token" rel="nofollow noreferrer">https://www.googleapis.com/oauth2/v3/token</a><br />
  </p>
  <p>[debug] [2021-03-20T19:18:32.948Z] &lt;&lt;&lt; HTTP RESPONSE 200 {&quot;expires&quot;:&quot;Mon, 01 Jan 1990 00:00:00
  GMT&quot;,&quot;cache-control&quot;:&quot;no-cache, no-store, max-age=0, must-revalidate&quot;,&quot;date&quot;:&quot;Sat, 20 Mar 2021 19:18:28 GMT&quot;,&quot;pragma&quot;:&quot;no-cache&quot;,&quot;content-type&quot;:&quot;application/json; charset=utf-8&quot;,&quot;vary&quot;:&quot;X-Origin, Referer, Origin,Accept-Encoding&quot;,&quot;server&quot;:&quot;scaffolding on HTTPServer2&quot;,&quot;x-xss-protection&quot;:&quot;0&quot;,&quot;x-frame-options&quot;:&quot;SAMEORIGIN&quot;,&quot;x-content-type-options&quot;:&quot;nosniff&quot;,&quot;alt-svc&quot;:&quot;h3-29=&quot;:443&quot;; ma=2592000,h3-T051=&quot;:443&quot;; ma=2592000,h3-Q050=&quot;:443&quot;; ma=2592000,h3-Q046=&quot;:443&quot;; ma=2592000,h3-Q043=&quot;:443&quot;; ma=2592000,quic=&quot;:443&quot;; ma=2592000; v=&quot;46,43&quot;&quot;,&quot;accept-ranges&quot;:&quot;none&quot;,&quot;transfer-encoding&quot;:&quot;chunked&quot;}
  [debug] [2021-03-20T19:18:33.023Z] &gt;&gt;&gt; [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects pageSize=100</p>
  <p>[debug] [2021-03-20T19:18:35.619Z] Failed to make request: invalid json response body at <a href="https://firebase.googleapis.com/v1beta1/projects?pageSize=100" rel="nofollow noreferrer">https://firebase.googleapis.com/v1beta1/projects?pageSize=100</a> reason: Unexpected token &lt; in JSON at position 0</p>
  <p>[debug] [2021-03-20T19:18:37.235Z] FirebaseError: Failed to make request: invalid json response body at <a href="https://firebase.googleapis.com/v1beta1/projects?pageSize=100" rel="nofollow noreferrer">https://firebase.googleapis.com/v1beta1/projects?pageSize=100</a> reason: Unexpected token &lt; in JSON at position 0
  at Client.request (C:\Users\john tucker\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:109:19)
  at processTicksAndRejections (internal/process/task_queues.js:97:5)</p>
  <p>[error]
  [error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.</p>
  <p><em><strong>I have already tried to logout and login and made sure that my app exists in the firebase console .</strong></em></p>
  <p><em><strong>I also get this error when I type firebase init in the terminal :</strong></em></p>
  <p>(node:12720) UnhandledPromiseRejectionWarning: FirebaseError: Failed to make request to <a href="https://firebase-public.firebaseio.com/cli.json" rel="nofollow noreferrer">https://firebase-public.firebaseio.com/cli.json</a>
  at Client.doRequest (C:\Users\john tucker\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:211:19)
  at processTicksAndRejections (internal/process/task_queues.js:97:5)</p>
  <p>(node:12720) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag <code>--unhandled-rejections=strict</code> (see <a href="https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode" rel="nofollow noreferrer">https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode</a>). (rejection id: 1)</p>
  <p>(node:12720) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.</p>