Running a Node.js function in the local Firebase server does not result in the error below, but when I do firebase deploy and try to run the same function on the deployed server I get this error in the Firebase Functions log (in the web Firebase console):
Error: Cannot find module '@google-cloud/speech'
What have I missed? (I can run some other functions on the deployed server, but I am new to this and have no idea if I have done something different, or if there is something different about this npm module.)
npm install --save @google-cloud/speechas the instructions say. I just did it once more just to be sure. And. That fixed the problem. It looks like I did not run the install from thefunctionsdirectory before. (And I don't understand what happened in the local web server case then.) Many thanks.