mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
runtime: enforce minimal node version to 6.9.0
Etherpad 1.6.6 does not run on node <= 5 already. Node 6.9 is the first LTS release in the 6 series, and comes with npm 3.10.8. Declarations in package.json are advisory unless the user has set `engine-strict` config flag. Updated the docs accordingly.
This commit is contained in:
parent
f1056bf01a
commit
7544585908
5 changed files with 50 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
|||
var log4js = require('log4js')
|
||||
, async = require('async')
|
||||
, stats = require('./stats')
|
||||
, NodeVersion = require('./utils/NodeVersion')
|
||||
;
|
||||
|
||||
log4js.replaceConsole();
|
||||
|
@ -39,6 +40,11 @@ var settings
|
|||
var npm = require("npm/lib/npm.js");
|
||||
|
||||
async.waterfall([
|
||||
function(callback)
|
||||
{
|
||||
NodeVersion.enforceMinNodeVersion('6.9.0', callback);
|
||||
},
|
||||
|
||||
// load npm
|
||||
function(callback) {
|
||||
npm.load({}, function(er) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue