I've encountered following error message whenever I've tried most of solutions related to that message. Please let me know how to fix it. I've just clone source of https://github.com/davideast/hnpwa-firebase/ and deploy to my firebase account.
I've already installed npm install
inside functions
folder.
My NodeJS version is v7.0.0
i deploying functions
i functions: running predeploy script.
> functions@ build /Users/user/Documents/Projects/firebase/hnpwa-firebase/functions
> tslint -p tslint.json && ./node_modules/.bin/tsc
typeof-compare is deprecated. Starting from TypeScript 2.2 the compiler includes this check which makes this rule redundant.
WARNING: /Users/user/Documents/Projects/firebase/hnpwa-firebase/functions/src/index.ts[1, 13]: 'functions' is declared but its value is never read.
✔ functions: Finished running predeploy script.
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing dist/server directory for uploading...
Error: Error parsing triggers: Cannot find module 'firebase-functions'
Try running "npm install" in your functions directory before deploying.
Try to install with the -g or save-dev argument.
npm install -g firebase-functions
npm install --save-dev firebase-functions
npm install firebase-functions
this pretty much fixes all of my problems with not finding modules. :D
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