mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 19:47:03 -04:00
Update checks for correct Node.js and Yarn versions
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
0ad434a69a
commit
1529d54b43
1 changed files with 10 additions and 6 deletions
16
bin/setup
16
bin/setup
|
@ -21,18 +21,22 @@ EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_lt "$(yarn --version)" '1.3.2'; then
|
if version_lt "$(yarn --version)" '1.22.0'; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Your yarn version is outdated. Please upgrade to a version
|
FATAL: Your Yarn version is outdated.
|
||||||
newer than 1.3.2.
|
|
||||||
|
Please upgrade to a version newer than 1.22.0.
|
||||||
|
See https://classic.yarnpkg.com/en/docs/install for instructions.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if version_lt "$(node --version)" 'v6.0.0'; then
|
if version_lt "$(node --version)" 'v10.13.0'; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Your node version is outdated. Please upgrade to version 6
|
FATAL: Your Node.js version is outdated.
|
||||||
or higher. (Version 8 or higher is recommended)
|
|
||||||
|
Please upgrade to version 10.13 or higher.
|
||||||
|
We recommend running the latest LTS release.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue