Cloud Storage for Firebase access error “admin.storage(…).ref is not a function”
问题 I am working with Cloud Storage for Firebase and can't figure out how to to access storage files According to https://firebase.google.com/docs/storage/web/start official guide and https://firebase.google.com/docs/storage/web/create-reference this code should be returning root reference let admin = require('firebase-admin') admin.initializeApp({...}) let storageRef = admin.storage().ref() But it throws an error saying TypeError: admin.storage(...).ref is not a function package.json { "name":