From ac27034c8c8bc33300a27f0cc27736ac89720371 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 9 Nov 2017 13:24:32 +0100 Subject: [PATCH 1/2] Update to require "Node.js v4 or newer". Just update the documentation to remove support for node `<4`. The current version of `mocha` pulls in dependencies which use arrow functions which fail in earlier versions of node. See https://travis-ci.org/sirreal/mocha/builds/299600162, where I forked `mocha` and added tests for earlier versions. --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index 6edd75d..d20a567 100644 --- a/index.md +++ b/index.md @@ -89,7 +89,7 @@ or as a development dependency for your project: $ npm install --save-dev mocha ``` -> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v1.4.0 or newer. Additionally, to run Mocha, you will need Node.js v0.10 or newer. +> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v1.4.0 or newer. Additionally, to run Mocha, you will need Node.js v4 or newer. Mocha can also be installed via [Bower](http://bower.io) (`bower install mocha`), and is available at [cdnjs](https://cdnjs.com/libraries/mocha). From 39de61f761972c69818d6c8537a7f120859d6a86 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 9 Nov 2017 13:28:58 +0100 Subject: [PATCH 2/2] Require minimum npm 2.14.2, shipped with node 4.0.0 If node v4 is required, it's silly to require npm@1. --- index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.md b/index.md index d20a567..8a9df9e 100644 --- a/index.md +++ b/index.md @@ -89,7 +89,7 @@ or as a development dependency for your project: $ npm install --save-dev mocha ``` -> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v1.4.0 or newer. Additionally, to run Mocha, you will need Node.js v4 or newer. +> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v2.14.2 or newer. Additionally, to run Mocha, you will need Node.js v4 or newer. Mocha can also be installed via [Bower](http://bower.io) (`bower install mocha`), and is available at [cdnjs](https://cdnjs.com/libraries/mocha).