Skip to content

Commit 80df96c

Browse files
committed
Handle guess where node or npm is not installed
1 parent 07e96b8 commit 80df96c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

install-gui.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ fi
3030
SUBMODULE_BRANCH=$1
3131

3232
do_check_npm_install() {
33+
if ! command -v npm >/dev/null 2>&1; then
34+
echo "npm is not installed. Please install NodeJS>=20 and npm>=10 manually"
35+
exit 1
36+
fi
37+
38+
if ! command -v node >/dev/null 2>&1; then
39+
echo "NodeJS is not installed. Please install NodeJS>=20 and npm>=10 manually"
40+
exit 1
41+
fi
42+
3343
NODEJS_VERSION="$(node -v | cut -d'.' -f 1 | sed -e 's/^v//')"
3444
NPM_VERSION="$(npm -v | cut -d'.' -f 1)"
3545

0 commit comments

Comments
 (0)