I am new in firebase Functions. In my functions/index.js I defined :
const Logging = require('@google-cloud/logging');
When I run firebase deploy --debug , I constantly get error:
Error parsing triggers: Cannot find module '@google-cloud/logging'
Why I get this error???
(BTW, in the firebase init
, I selected Functions
:
)
You can't use a module until you install it into your project and it appears in your package.json. Run this in your functions
folder:
npm install @google-cloud/logging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With