The Cloud Functions emulator requires the module "firebase-admin" to be installed
It looks like this issue now relates to the Node version you have installed locally.
I don't know the answer off the top of my head, but start looking around the node versions.
In your functions/package.json - it may be that you need to specify which node version to use (https://firebase.google.com/docs/functions/manage-functions):
// functions/package.json
{
"name": ...,
"scripts": ...,
"dependencies": ...,
"engines": {
"node": "10"
}
}
Just be aware Node 10 is still in beta on Firebase.
I was seeing the same thing and it looks like you can downgrade your firebase-tools version to 6.8.0
npm install [email protected] -g
(I've tried this and it works)