Prompt for nodenv when missing

The setup script would display several error messages and continue
running. Now the user is guided to the right solution.
This commit is contained in:
Maikel Linke
2024-01-25 10:57:38 +11:00
parent 1884bcf780
commit 09a24b0f1f

View File

@@ -5,6 +5,14 @@
# If our node-build version is outdated and it can't build the version we want
# then we try upgrading node-build and installing again.
# Fail if a single command fails.
set -e
if ! command -v nodenv > /dev/null; then
printf "Please install https://github.com/nodenv/nodenv.\n"
exit 1
fi
if nodenv install --skip-existing; then
echo "Correct Node version is installed."
else