Commit 9c5ac8ed authored by Hubert SABLONNIERE's avatar Hubert SABLONNIERE Committed by Dan Allen

set node version to 8.5.0

parent 54aca2af
......@@ -183,18 +183,16 @@ To see which version of Node you have installed, open a terminal and type:
If `node --version` doesn't return any information, you don't yet have Node installed.
The minimum required version of Node is *v7.10.1*, as indicated in the [.path]_package.json_ file.
The minimum required version of Node is *v8.5.0*, as indicated in the [.path]_package.json_ file.
This is also the recommended version of Node for development.
.Why Node 7?
.Why Node 8?
****
This project leverages the latest and greatest features of ECMAScript, namely ECMAScript 2016 (ES2016, or ES7 for short).
The main feature of ES7 this project depends on is the `await` keyword since it drastically simplifies asynchronous code.
That's why this project requires at least Node v7.10.1.
NOTE: We don't recommend using Node 8 at this time since it's not officially supported by one of the main dependencies of the project, NodeGit.
Nodegit is the git integration library used to fetch files form the content repositories.
Once Node 8 is officially supported by NodeGit, we'll consider bumping the recommended version of Node.
This project leverages the latest and greatest features of ECMAScript, namely ECMAScript 2017 (ES2017).
The main feature of ES2017 this project depends on is Async Functions (with the new `async` & `await` keywords).
It drastically simplifies our asynchronous code.
In order to use this feature, we need least Node v7.10.1.
For stability reasons, we decided to go for Node 8 since our dependencies are compatible and it will have longer support.
****
If you don't yet have Node installed, or the version of Node you have isn't Node 7, we strongly recommend using {uri-nvm}[nvm] (Node Version Manager) to manage your Node installations.
......@@ -203,16 +201,16 @@ Follow the {uri-nvm-install}[nvm installation instructions] to set up nvm on you
TIP: Many CI environments use nvm to install the version of Node used for the build job.
By using nvm, you can closely align your setup with the environment that is used to generate and publish the production site.
Once you've installed nvm, open a new terminal and install Node 7 using:
Once you've installed nvm, open a new terminal and install Node 8 using:
$ nvm install 7
$ nvm install 8
The above command will install the latest version of Node 7.
The above command will install the latest version of Node 8.
If you already have other Node versions installed, you can configure Node 7 as the default for any new terminal.
If you already have other Node versions installed, you can configure Node 8 as the default for any new terminal.
$ nvm alias default 7
$ nvm alias default 8
You can skip this step if you didn't previously have any Node versions installed because `nvm install` automatically adds the default alias to the first version of Node you install.
......
......@@ -9,7 +9,7 @@
"license": "MPL-2.0",
"main": "lib/index.js",
"engines": {
"node": ">= 7.10.1"
"node": ">= 8.5.0"
},
"devDependencies": {
"array-to-stream": "^1.0.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment