Skip to content

Commit 254dc8b

Browse files
taeoldjoehan
andauthored
Update old error messages on valid nodejs runtimes. (#5784)
Co-authored-by: joehan <joehanley@google.com>
1 parent 4d6da7e commit 254dc8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/deploy/functions/runtimes/node/parseRuntimeAndValidateSDK.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ const ENGINE_RUNTIMES_NAMES = Object.values(ENGINE_RUNTIMES);
2424
export const RUNTIME_NOT_SET =
2525
"`runtime` field is required but was not found in firebase.json.\n" +
2626
"To fix this, add the following lines to the `functions` section of your firebase.json:\n" +
27-
'"runtime": "nodejs16"\n';
27+
'"runtime": "nodejs18"\n';
2828

2929
export const UNSUPPORTED_NODE_VERSION_FIREBASE_JSON_MSG = clc.bold(
3030
`functions.runtime value is unsupported. ` +
31-
`Valid choices are: ${clc.bold("nodejs{10|12|14|16}")}.`
31+
`Valid choices are: ${clc.bold("nodejs{10|12|14|16|18}")}.`
3232
);
3333

3434
export const UNSUPPORTED_NODE_VERSION_PACKAGE_JSON_MSG = clc.bold(
3535
`package.json in functions directory has an engines field which is unsupported. ` +
36-
`Valid choices are: ${clc.bold('{"node": 10|12|14|16}')}`
36+
`Valid choices are: ${clc.bold('{"node": 10|12|14|16|18}')}`
3737
);
3838

3939
export const DEPRECATED_NODE_VERSION_INFO =

0 commit comments

Comments
 (0)