I'm trying to add cloud functions to my firebase project, but when I trigger a delivery (through push), I receive this error:
<span>INFO: Starting deployment of the project to Firebase.</span>
<span>✖ </span><span>Error:</span><span> Error parsing triggers: Cannot find module 'firebase-functions'<br></span><span>Try running "npm install" in your functions directory before deploying.</span><span>INFO: Executing the pipe...<br></span>
Yes, I tried npm installing everywhere but deploy fails anyway. I don't know if there's some kind of conflict between the two package.json (root and functions).
When I remove the functions directory, the error goes away - but I'd like to deploy my functions directory upon git push. Also, when I deploy through _firebase deploy_, there's no error.