title: TypeError: Cannot read property 'wanted' of undefined:
body: <p>I have been deploying functions with firebase successfully all day learning how to use it. I was trying to see what happened if I initialized another directory that deploys to the same project and had no problems until i updated my npm version and now I am getting "Unexpected error has occurred" whenever I try to deploy</p>
  
  <p>I have tried updating npm permission by making my own user the owner of the node_modules, bin, and share directories. I have tried uninstalling and reinstalling firebase-tools. I have also tried deleting all my current function directories and initializing a fresh directory and reinstalling my dependencies in there fresh.</p>
  
  <p>Here is the debug log</p>
  
  <pre><code>Dylans-MacBook-Pro-3:functions dsenderling$ firebase deploy --debug
  [2019-07-03T18:04:35.526Z] ----------------------------------------------------------------------
  [2019-07-03T18:04:35.528Z] Command:       /usr/local/bin/node /usr/local/bin/firebase deploy --debug
  [2019-07-03T18:04:35.529Z] CLI Version:   7.0.2
  [2019-07-03T18:04:35.529Z] Platform:      darwin
  [2019-07-03T18:04:35.529Z] Node Version:  v10.16.0
  [2019-07-03T18:04:35.529Z] Time:          Wed Jul 03 2019 13:04:35 GMT-0500 (Central Daylight Time)
  [2019-07-03T18:04:35.529Z] ----------------------------------------------------------------------
  
  [2019-07-03T18:04:35.537Z] &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"]
  [2019-07-03T18:04:35.537Z] &gt; authorizing via signed-in user
  [2019-07-03T18:04:35.537Z] [iam] checking project my-awesome-project-5a4e9 for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]
  [2019-07-03T18:04:35.539Z] &gt;&gt;&gt; HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/my-awesome-project-5a4e9:testIamPermissions  
   permissions=[cloudfunctions.functions.create, cloudfunctions.functions.delete, cloudfunctions.functions.get, cloudfunctions.functions.list, cloudfunctions.functions.update, cloudfunctions.operations.get, firebase.projects.get]
  [2019-07-03T18:04:35.769Z] &lt;&lt;&lt; HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Wed, 03 Jul 2019 18:04:35 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, server-timing=gfet4t7; dur=83, alt-svc=quic=":443"; ma=2592000; v="46,43,39", accept-ranges=none, transfer-encoding=chunked
  [2019-07-03T18:04:37.033Z] TypeError: Cannot read property 'wanted' of undefined
      at /usr/local/lib/node_modules/firebase-tools/lib/checkFirebaseSDKVersion.js:37:51
      at process._tickCallback (internal/process/next_tick.js:68:7)
  
  Error: An unexpected error has occurred.
  </code></pre>
  
  <p>My gut tells me there is something wrong with firebase-tools or my firebase sdk but I can't figure out what. Thanks in advance</p>