Module not found: Can't resolve 'firebase' in code example
Example 1: Can't resolve 'firebase/app' in
npm install firebase
Example 2: Firebase deploy error - Cannot find module 'firebase'
Figured out the solution. I hadn't installed the firebase module in the functions folder but had included it in the parent folder of functions. I went into functions and ran npm install --save firebase and the deploy was successful.