title: Firebase config variables are not available error with deploying functions
body: <p>When I am deploying Firebase functions without </p>
  
  <pre><code>admin.initializeApp(functions.config().firebase);
  </code></pre>
  
  <p>Firebase logs </p>
  
  <blockquote>
    <p>Error: The default Firebase app does not exist. Make sure you call
    initializeApp() before using any of the Firebase services.</p>
  </blockquote>
  
  <p>But if I add that line I get error on deploy. </p>
  
  <pre><code>&gt;firebase deploy --only functions
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>Error: Error occurred while parsing your function triggers. Please
    ensure you have the latest firebase-functions SDK by running "npm i
    --save firebase-functions@latest" inside your functions folder.</p>
    
    <p>Error: Firebase config variables are not available. Please use the
    latest version of the Firebase CLI to deploy this function.</p>
  </blockquote>
  
  <p>I already did <code>npm i --save firebase-functions@latest</code> which haven't done anything. I am stuck and can't do anything right now because of this... I am down for any reinstalls if they could help just tell me some steps or hints and I would seek for the rest.</p>
  
  <hr>
  
  <p>NPM and NodeJS versions are: </p>
  
  <pre><code>node -v
  v8.9.1
  npm -v
  5.6.0
  </code></pre>
  
  <p><strong>Edit.</strong> Installation with admin rights: </p>
  
  <pre><code>npm i --save firebase-functions@latest
  npm WARN firebase-functions@0.8.1 requires a peer of firebase-admin@~5.8.1 but none is installed. You must install peer dependencies yourself.
  
  npm ERR! path C:\Users\Telion\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev
  npm ERR! code ENOENT
  npm ERR! errno -4058
  npm ERR! syscall rename
  npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Telion\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev' -&gt; 'C:\Users\Telion\firebaseApps\project-name\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\.abbrev.DELETE'
  npm ERR! enoent This is related to npm not being able to find a file.
  npm ERR! enoent
  </code></pre>
  
  <p>It actually appeared I was on npm version 5.5.1 but even after the update to 5.6.0 I got the exact same error. </p>