TL;DR: If you can't use any other version of node, it looks like you should use v5
.
What I did was clone the angular-cli
repo and then ran:
git log --oneline -p -L 48,48:package.json --diff-filter=m
--oneline
to show only the short log of the commit
-p
to generate a patch listing
-L 48,48:package.json
which is the current line the node version is set on in package.json
as of commit 7924e0a
--diff-filter=m
to show only file modification (although that probably doesn't matter here)
which produced the log listing below. This shows every time the explicit node
version requirement changed in the package.json
engine
properties.
As you can see it was changed 3 times:
c38b5c09
it was explicitly set to node >= 4.1.0
08af5d54
it was unchanged, but an explicit npm
version was set (npm >=3.0.0
)
0a1f19ff
it was set to node >= 6.9.0
29338bca
it was set to node >= 8.9.0
So, from that, you can assume that you can use any version of Angular from before that commit should work. That particular commit is for the v6.0.0-beta3
. So I would say major version v5
.
git log
output
29338bca refactor: set minimum node version to 8.9
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -34,2 +34,1 @@
- "node": ">= 6.9.0",
- "npm": ">= 3.0.0"
+ "node": ">= 8.9.0",
0a1f19ff build: specify package node v6 engine dependency
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -32,2 +32,2 @@
- "node": ">= 4.1.0",
+ "node": ">= 6.9.0",
"npm": ">= 3.0.0"
08af5d54 chore: add engine entries to package.json
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -33,1 +33,2 @@
- "node": ">= 4.1.0"
+ "node": ">= 4.1.0",
+ "npm": ">= 3.0.0"
c38b5c09 chore(deps): make node 4.1.0 requirement explicit
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -18,0 +19,1 @@
+ "node": ">= 4.1.0"