Skip to content
This repository was archived by the owner on May 15, 2019. It is now read-only.

Commit 098e253

Browse files
gligorangrant
authored andcommitted
Update Node version warning message for emulator (#315)
1 parent 3cae45b commit 098e253

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/emulator

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ if (!semver.satisfies(process.version, '>= 6.11.5')) {
2222
process.exit(1);
2323
}
2424

25-
if (semver.satisfies(process.version, '>= 7.0.0')) {
26-
console.log(`Warning: You're using Node.js ${process.version} but Google Cloud Functions emulator only supports v6.x.`);
25+
if (semver.satisfies(process.version, '7.x.x') || semver.satisfies(process.version, '>= 9.0.0')) {
26+
console.log(`Warning: You're using Node.js ${process.version} but the Google Cloud Functions runtime is only available in Node.js 6 and Node.js 8.` +
27+
` Therefore, results from running emulated functions may not match production behavior.`);
2728
}
2829

2930
exports.emulator = require('../src/emulator');

0 commit comments

Comments
 (0)