Skip to content

Commit c91f534

Browse files
feat: Deprecate support for Node.js 6.x.x
As Node.js 6.x.x is in maintenance mode, we deprecate support for it. We'll keep it deprecated until the usage of it is very low. Disable support for Node.js 4.x.x and 5.x.x Currently, when CLI is used with Node.js 4.x.x or 5.x.x, a warning has been shown. As we are deprecating support for Node.js 6.x.x and Node.js 4.x.x is near the end of its life, remove the support for Node.js versions below 6.x.x In case Node.js 4.x.x is used, CLI will show error and will not execute the command. Node.js 4.x.x has been deprecated for some months.
1 parent a51a706 commit c91f534

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/tns

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var path = require("path"),
66
pathToLib = path.join(__dirname, "..", "lib"),
77
pathToCommon = path.join(pathToLib, "common");
88

9-
require(path.join(pathToCommon, "verify-node-version")).verifyNodeVersion(node, "NativeScript", [ "^4.0.0" ]);
9+
require(path.join(pathToCommon, "verify-node-version")).verifyNodeVersion(node, "NativeScript", [ "^6.0.0" ]);
1010

1111
var pathToCliExecutable = path.join(pathToLib, "nativescript-cli.js");
1212

lib/common

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@
116116
},
117117
"license": "Apache-2.0",
118118
"engines": {
119-
"node": ">=6.0.0 <11.0.0"
119+
"node": ">=8.0.0 <11.0.0"
120120
}
121121
}

0 commit comments

Comments
 (0)