diff --git a/src/GrpcService.ts b/src/GrpcService.ts index 72f369e1..88dffd35 100644 --- a/src/GrpcService.ts +++ b/src/GrpcService.ts @@ -1,7 +1,7 @@ import * as semver from 'semver'; -if (!semver.satisfies(process.version, '8.x')) { - let errorMessage = `Your Function App is currently set to use current version ${process.version}, but the runtime requires Node 8.x. +if (!semver.satisfies(process.version, '8.x || 10.x')) { + let errorMessage = `Your Function App is currently set to use current version ${process.version}, but the runtime requires Node 8.x or 10.x. For deployed code, please change WEBSITE_NODE_DEFAULT_VERSION in App Settings. On your local machine, you can change node version using 'nvm' (make sure to quit and restart your code editor to pick up the changes).`; console.error(errorMessage); throw new Error(errorMessage);