From e1df30bd5c46ec8d99d5758df748f035ec93b44b Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 22 Apr 2021 18:46:01 +0200 Subject: Raise minimum required Node.js version to 12 As Node 10 will be EOL at April 30th, we should stop supporting and/or promoting the usage of that version. See also https://endoflife.date/nodejs Signed-off-by: David Mehren --- bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/setup b/bin/setup index 43df07ff..dc3c1cbf 100755 --- a/bin/setup +++ b/bin/setup @@ -31,11 +31,11 @@ EOF exit 1 fi -if version_lt "$(node --version)" 'v10.13.0'; then +if version_lt "$(node --version)" 'v12.0.0'; then cat << EOF FATAL: Your Node.js version is outdated. -Please upgrade to version 10.13 or higher and try again. +Please upgrade to version 12 or higher and try again. We recommend running the latest LTS release, see https://nodejs.org/en/about/releases/ for details. EOF exit 1 -- cgit v1.2.3 From d52a43e81110126e900fbeb46f2255c1375520ce Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 22 Apr 2021 18:56:52 +0200 Subject: Fix version error wording in bin/setup The previous error message stated that the version of Node or Yarn is "outdated", which might be accurate coincidentally, but is not what the script checks. This commit changes the wording to use "not supported", which is more accurate to the true check in the script. Signed-off-by: David Mehren --- bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/setup b/bin/setup index dc3c1cbf..1ab9c393 100755 --- a/bin/setup +++ b/bin/setup @@ -23,7 +23,7 @@ fi if version_lt "$(yarn --version)" '1.22.0'; then cat << EOF -FATAL: Your Yarn version is outdated. +FATAL: Your Yarn version is not supported. Please upgrade to version 1.22.0 or higher and try again. See https://classic.yarnpkg.com/en/docs/install for instructions. @@ -33,7 +33,7 @@ fi if version_lt "$(node --version)" 'v12.0.0'; then cat << EOF -FATAL: Your Node.js version is outdated. +FATAL: Your Node.js version is not supported. Please upgrade to version 12 or higher and try again. We recommend running the latest LTS release, see https://nodejs.org/en/about/releases/ for details. -- cgit v1.2.3