title: Error parsing triggers: Cannot find module 'firebase-admin/lib/database'
body: <p>I was working on my firestore functions. It went fine until today's flutter upgrade. After upgrade &quot;firebase deploy&quot; is not working anymore:</p>
  <pre><code>    $ firebase deploy
  
  === Deploying to 'project-id'...
  
  i  deploying database, storage, firestore, functions, hosting
  Running command: npm --prefix &quot;$RESOURCE_DIR&quot; run lint
  
  &gt; functions@ lint /Users/username/Desktop/projects/project/functions
  &gt; eslint .
  
  ✔  functions: Finished running predeploy script.
  i  database: checking rules syntax...
  ✔  database: rules syntax for database project-id is valid
  i  firebase.storage: checking storage.rules for compilation errors...
  ⚠  [W] undefined:undefined - Ruleset uses old version (version [1]). Please update to the latest version (version [2]).
  ✔  firebase.storage: rules file storage.rules compiled successfully
  i  firestore: reading indexes from firestore.indexes.json...
  i  cloud.firestore: checking firestore.rules for compilation errors...
  ✔  cloud.firestore: rules file firestore.rules compiled successfully
  i  functions: ensuring required API cloudfunctions.googleapis.com is enabled...
  i  functions: ensuring required API cloudbuild.googleapis.com is enabled...
  ✔  functions: required API cloudbuild.googleapis.com is enabled
  ✔  functions: required API cloudfunctions.googleapis.com is enabled
  i  storage: latest version of storage.rules already up to date, skipping upload...
  ✔  firestore: deployed indexes in firestore.indexes.json successfully
  i  firestore: latest version of firestore.rules already up to date, skipping upload...
  i  functions: preparing functions directory for uploading...
  
  Error: Error parsing triggers: Cannot find module 'firebase-admin/lib/database'
  Require stack:
  - /Users/user/Desktop/projects/project/functions/src/profile.js
  - /Users/user/Desktop/projects/project/functions/index.js
  - /usr/local/lib/node_modules/firebase-tools/lib/triggerParser.js
  
  Try running &quot;npm install&quot; in your functions directory before deploying.
  </code></pre>
  <p>Tried posts with similar topics on stackoverflow but they didn't work for me. Tried &quot;npm install&quot; from both project and functions directory, I beleive I have latest firebase-admin package, but still getting this error. Any hint is appreciated.</p>