title: Cloud Storage for Firebase access error "admin.storage(...).ref is not a function"
body: <p>I am working with Cloud Storage for Firebase and can't figure out how to to access storage files</p>
  
  <p>According to <a href="https://firebase.google.com/docs/storage/web/start" rel="noreferrer">https://firebase.google.com/docs/storage/web/start</a> official guide and <a href="https://firebase.google.com/docs/storage/web/create-reference" rel="noreferrer">https://firebase.google.com/docs/storage/web/create-reference</a> this code should be returning root reference</p>
  
  <pre><code>let admin = require('firebase-admin')
  admin.initializeApp({...})
  let storageRef = admin.storage().ref()
  </code></pre>
  
  <p>But it throws an error saying </p>
  
  <blockquote>
    <p>TypeError: admin.storage(...).ref is not a function</p>
  </blockquote>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
    "name": "functions",
    "description": "Cloud Functions for Firebase",
    "scripts": {...},
    "dependencies": {
      "@google-cloud/storage": "^1.5.1",
      "firebase": "^4.8.0",
      "firebase-admin": "~5.4.2",
      "firebase-functions": "^0.7.1",
      "pdfkit": "^0.8.3",
      "uuid": "^3.1.0"
    },
    "private": true
  }
  </code></pre>
  
  <p>node -v => 
  <strong>v7.7.4</strong></p>
  
  <p>My end goal it to download files or upload a pdf file to storage. </p>