Migrate your Firebase Cloud Functions to Node.js 10

Doug Stevenson
Firebase Developers
3 min readJun 18, 2020

--

Cloud Functions for Firebase and Node.js logos

You might have heard that Cloud Functions supports Node.js 10 since May 18, 2020 and has deprecated Node.js 8 since June 5, 2020. And in the Firebase console, you’ll notice this message:

Node.js 8 has been deprecated.

- Starting Feb 15, 2021, we’ll no longer support new deploys or updates of Node.js 8 functions.
- Starting Mar 15, 2021, we’ll no longer support executions of existing Node.js 8 functions.

Read more about the deprecation in the Firebase FAQ.

So, if you’re running functions on node 8, it’s a great idea to take some steps to migrate to node 10 very soon. Fortunately, it’s pretty easy. This article discusses how to do that if you deploy your functions with the Firebase CLI.

(If you’re not using the Firebase CLI to deploy, and are using gcloud as prescribed by Google Cloud docs, you can still read along and get some helpful tips, but you won’t be able to use the firebase-functions module.)

After you make the required changes, you will have to deploy your function again, and you should see the new runtime listed in the output:

i  functions: preparing functions directory for uploading...
i functions: packaged functions (41.77 KB) for uploading
✔ functions: functions folder uploaded successfully…

--

--