summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mehren2020-11-17 20:39:50 +0100
committerDavid Mehren2020-11-17 20:46:43 +0100
commit1529d54b4310284b4be303a5614fb43e6bc09e85 (patch)
tree065166e8f9b702ccd23973054d15899c6fdb8918
parent0ad434a69a6719952ee9ea8109609187d7e6128f (diff)
Update checks for correct Node.js and Yarn versions
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to '')
-rwxr-xr-xbin/setup16
1 files changed, 10 insertions, 6 deletions
diff --git a/bin/setup b/bin/setup
index 0a48ba8c..c73aeeea 100755
--- a/bin/setup
+++ b/bin/setup
@@ -21,18 +21,22 @@ EOF
exit 1
fi
-if version_lt "$(yarn --version)" '1.3.2'; then
+if version_lt "$(yarn --version)" '1.22.0'; then
cat <<EOF
-Your yarn version is outdated. Please upgrade to a version
-newer than 1.3.2.
+FATAL: Your Yarn version is outdated.
+
+Please upgrade to a version newer than 1.22.0.
+See https://classic.yarnpkg.com/en/docs/install for instructions.
EOF
exit 1
fi
-if version_lt "$(node --version)" 'v6.0.0'; then
+if version_lt "$(node --version)" 'v10.13.0'; then
cat <<EOF
-Your node version is outdated. Please upgrade to version 6
-or higher. (Version 8 or higher is recommended)
+FATAL: Your Node.js version is outdated.
+
+Please upgrade to version 10.13 or higher.
+We recommend running the latest LTS release.
EOF
exit 1
fi