diff --git a/core/boot.js b/core/boot.js index f2578570c..9a7ccd3b8 100644 --- a/core/boot.js +++ b/core/boot.js @@ -398,7 +398,7 @@ if(!$tw.browser) { // Read package info $tw.packageInfo = JSON.parse(fs.readFileSync($tw.boot.bootPath + "/../package.json")); // Check node version number - if($tw.utils.checkVersions($tw.packageInfo.engine.node.substr(2),process.version.substr(1))) { + if($tw.utils.checkVersions($tw.packageInfo.engines.node.substr(2),process.version.substr(1))) { throw "TiddlyWiki5 requires node.js version " + $tw.packageInfo.engine.node; } } diff --git a/package.json b/package.json index a650fa44a..22351e9f3 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "bundleDependencies": [ ], "license": "BSD", - "engine": { + "engines": { "node": ">=0.8.2" } } \ No newline at end of file