title: Firebase Deploy "An unexpected error has occurred"
body: <p>Trying to deploy a new site to Firebase (as I've done a dozen times, though haven't for a few months).  Everything is going fine, but then when I get to "Firebase Deploy", I get "Error: An unexpected error has occurred".  I've tried the suggestions given where a similar question was asked earlier (<a href="https://stackoverflow.com/questions/42475477/an-unexpected-error-has-occurred-after-firebase-deploy">&quot;An unexpected error has occurred&quot; after firebase deploy</a>) but none of them have done any good (keep getting the same error).  Firebase is updated.  Running on a Linux 64-bit (if it matters).  I ran a debug on the deploy, and got the following log:</p>
  
  <pre><code>[debug] [2018-12-11T21:45:26.441Z] ----------------------------------------------------------------------
  [debug] [2018-12-11T21:45:26.443Z] Command:       /home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/node/bin/node /home/myName/.nvm/versions/node/v8.9.4/bin/firebase deploy
  [debug] [2018-12-11T21:45:26.443Z] CLI Version:   3.18.5
  [debug] [2018-12-11T21:45:26.443Z] Platform:      linux
  [debug] [2018-12-11T21:45:26.443Z] Node Version:  v10.3.0
  [debug] [2018-12-11T21:45:26.443Z] Time:          Tue Dec 11 2018 14:45:26 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:26.443Z] ----------------------------------------------------------------------
  [debug] 
  [debug] [2018-12-11T21:45:26.448Z] &gt; command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
  [debug] [2018-12-11T21:45:26.448Z] &gt; authorizing via signed-in user
  [debug] [2018-12-11T21:45:26.449Z] &gt; refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","open
  [debug] [2018-12-11T21:45:26.450Z] &gt;&gt;&gt; HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  
   { refresh_token: '1/9RM51tbmmz5VrjkpAxad-5CElD29bDNC-Dyu-L6-9hw',
    client_id:
     '563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
    client_secret: 'j9iVZfS8kkCEFUPaAeJV0sAi',
    grant_type: 'refresh_token',
    scope:
     'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' } 
   Tue Dec 11 2018 14:45:26 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:26.674Z] &lt;&lt;&lt; HTTP RESPONSE 200
  [debug] [2018-12-11T21:45:27.581Z] &gt;&gt;&gt; HTTP REQUEST GET https://admin.firebase.com/v1/projects/my-home-page-ed336  
  
   Tue Dec 11 2018 14:45:27 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:27.871Z] &lt;&lt;&lt; HTTP RESPONSE 200
  [debug] [2018-12-11T21:45:27.873Z] &gt;&gt;&gt; HTTP REQUEST GET https://admin.firebase.com/v1/database/my-home-page-ed336/tokens  
  
   Tue Dec 11 2018 14:45:27 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:28.270Z] &lt;&lt;&lt; HTTP RESPONSE 200
  [info] 
  [info] === Deploying to 'my-home-page-ed336'...
  [info] 
  [info] i  deploying hosting
  [info] i  hosting: preparing . directory for upload...
  [debug] [2018-12-11T21:45:28.733Z] &gt;&gt;&gt; HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/my-home-page-ed336/uploads/-LTUDqAhHObNxZ0HsRuG?fileCount=114&amp;message=  
  
   Tue Dec 11 2018 14:45:28 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:36.863Z] &lt;&lt;&lt; HTTP RESPONSE 410
  [debug] [2018-12-11T21:45:36.864Z] &lt;&lt;&lt; HTTP RESPONSE BODY undefined
  [debug] [2018-12-11T21:45:36.867Z] TypeError: Cannot read property 'error' of undefined
      at module.exports (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/responseToError.js:10:13)
      at Request._callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/api.js:47:25)
      at Request.self.callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
      at Request.emit (events.js:182:13)
      at Request.EventEmitter.emit (domain.js:442:20)
      at Request.&lt;anonymous&gt; (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1157:10)
      at Request.emit (events.js:182:13)
      at Request.EventEmitter.emit (domain.js:442:20)
      at IncomingMessage.&lt;anonymous&gt; (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1079:12)
      at Object.onceWrapper (events.js:273:13)
  [error] 
  [error] Error: An unexpected error has occurred.
  [debug] [2018-12-11T21:45:49.697Z] ----------------------------------------------------------------------
  [debug] [2018-12-11T21:45:49.699Z] Command:       /home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/node/bin/node /home/myName/.nvm/versions/node/v8.9.4/bin/firebase deploy --debug
  [debug] [2018-12-11T21:45:49.700Z] CLI Version:   3.18.5
  [debug] [2018-12-11T21:45:49.700Z] Platform:      linux
  [debug] [2018-12-11T21:45:49.700Z] Node Version:  v10.3.0
  [debug] [2018-12-11T21:45:49.700Z] Time:          Tue Dec 11 2018 14:45:49 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:49.700Z] ----------------------------------------------------------------------
  [debug] 
  [debug] [2018-12-11T21:45:49.705Z] &gt; command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
  [debug] [2018-12-11T21:45:49.705Z] &gt; authorizing via signed-in user
  [debug] [2018-12-11T21:45:49.707Z] &gt;&gt;&gt; HTTP REQUEST GET https://admin.firebase.com/v1/projects/my-home-page-ed336  
  
   Tue Dec 11 2018 14:45:49 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:50.018Z] &lt;&lt;&lt; HTTP RESPONSE 200
  [debug] [2018-12-11T21:45:50.021Z] &gt;&gt;&gt; HTTP REQUEST GET https://admin.firebase.com/v1/database/my-home-page-ed336/tokens  
  
   Tue Dec 11 2018 14:45:50 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:50.315Z] &lt;&lt;&lt; HTTP RESPONSE 200
  [info] 
  [info] === Deploying to 'my-home-page-ed336'...
  [info] 
  [info] i  deploying hosting
  [info] i  hosting: preparing . directory for upload...
  [debug] [2018-12-11T21:45:50.768Z] &gt;&gt;&gt; HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/my-home-page-ed336/uploads/-LTUDvYyTmVMnTOVgYO3?fileCount=114&amp;message=  
  
   Tue Dec 11 2018 14:45:50 GMT-0700 (MST)
  [debug] [2018-12-11T21:45:57.867Z] &lt;&lt;&lt; HTTP RESPONSE 410
  [debug] [2018-12-11T21:45:57.868Z] &lt;&lt;&lt; HTTP RESPONSE BODY undefined
  [debug] [2018-12-11T21:45:57.871Z] TypeError: Cannot read property 'error' of undefined
      at module.exports (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/responseToError.js:10:13)
      at Request._callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/api.js:47:25)
      at Request.self.callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
      at Request.emit (events.js:182:13)
      at Request.EventEmitter.emit (domain.js:442:20)
      at Request.&lt;anonymous&gt; (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1157:10)
      at Request.emit (events.js:182:13)
      at Request.EventEmitter.emit (domain.js:442:20)
      at IncomingMessage.&lt;anonymous&gt; (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1079:12)
      at Object.onceWrapper (events.js:273:13)
  [error] 
  [error] Error: An unexpected error has occurred.
  </code></pre>
  
  <p>Thanks for everyone's help!</p>