diff --git a/README.md b/README.md index 193746cde55..57719fa5140 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Minimum browser requirements for viewing the site: Windows installation software requirements: -- [Node.js](http://nodejs.org/) Latest Node 8 LTS (Node 8.14.0 or later) or Node 10 LTS (Node 10.14.2 or later). Use [Install instructions for Node](https://nodejs.org/en/download/package-manager/) or use `setup.sh`) +- [Node.js](http://nodejs.org/) Latest Node 8 LTS (Node 8.15.0 or later) or Node 10 LTS (Node 10.14.1 or later). Use [Install instructions for Node](https://nodejs.org/en/download/package-manager/) or use `setup.sh`) - [MongoDB](https://www.mongodb.com/download-center?jmp=nav#community) 3.x or later. MongoDB 2.4 is only supported for Raspberry Pi. As a non-root user clone this repo then install dependencies into the root of the project: @@ -144,7 +144,7 @@ Installation notes for Microsoft Azure, Windows: - If deploying the software to Microsoft Azure, you must set ** in the app settings for *WEBSITE_NODE_DEFAULT_VERSION* and *SCM_COMMAND_IDLE_TIMEOUT* **before** you deploy the latest Nightscout or the site deployment will likely fail. Other hosting environments do not require this setting. Please use: ``` -WEBSITE_NODE_DEFAULT_VERSION=8.11.1 +WEBSITE_NODE_DEFAULT_VERSION=10.14.1 SCM_COMMAND_IDLE_TIMEOUT=300 ``` - See [install MongoDB, Node.js, and Nightscouton a single Windows system](https://github.com/jaylagorio/Nightscout-on-Windows-Server). if you want to host your Nightscout outside of the cloud. Although the instructions are intended for Windows Server the procedure is compatible with client versions of Windows such as Windows 7 and Windows 10. diff --git a/lib/server/bootevent.js b/lib/server/bootevent.js index c46931fe0b8..9cfe4b338e5 100644 --- a/lib/server/bootevent.js +++ b/lib/server/bootevent.js @@ -18,14 +18,13 @@ function boot (env, language) { function checkNode (ctx, next) { var semver = require('semver'); var nodeVersion = process.version; - if ( semver.satisfies(nodeVersion, '^8.14.0') || semver.satisfies(nodeVersion, '^10.14.2')) { + if ( semver.satisfies(nodeVersion, '^8.15.0') || semver.satisfies(nodeVersion, '^10.15.0')) { console.debug('Node version ' + nodeVersion + ' is supported'); next(); } - else if ( semver.eq(nodeVersion, '8.11.1')) { - console.log('WARNING: Node version v8.11.1 and Microsoft Azure are not recommended.'); - console.log('WARNING: Please migrate to another hosting provider. Your Node version is considered insecure and' + - ' has several security vulnerabilities. Use at your own risk.'); + else if ( semver.eq(nodeVersion, '10.14.1')) { + console.log('WARNING: Node version v10.14.1 and Microsoft Azure are not recommended.'); + console.log('WARNING: Please migrate to another hosting provider. Your Node version is outdated'); next(); } else { // in all other cases don't start Node diff --git a/package.json b/package.json index 08dffede573..a512f06e24f 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ } }, "engines": { - "node": "^10.14.2 || ^8.14.1 || ~8.11.1", + "node": "^10.14.1 || ^8.15.0", "npm": "6.x" }, "dependencies": {