I am trying to deploy a function to firebase and I get an error during deployment
Error: Functions did not deploy properly.
Could it be linked with the async
As of September 2019:
npm install --save firebase-admin
npm install --save firebase-functions
"engines": { "node": "10" }
to your /functions/package.json...
"dependencies": {
"firebase-admin": "^8.5.0",
"firebase-functions": "^3.2.0"
},
"devDependencies": {
"tslint": "~5.19.0",
"typescript": "~3.6.2"
},
"engines": {
"node": "10"
}
...
As of August 2018:
Cloud Functions now support Node 8 (8.11.1). Check out this blog post.
Upgrade to Node 8
As suggested in this blog post, follow these steps to upgrade to Node 8:
npm install --save firebase-functions@latest
npm update -g firebase-tools
"engines": { "node": "8" }
to your /functions/package.json