From 998c7401c98b4625d475872ffb482a981cdd4ff2 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 9 Mar 2022 19:22:37 -0700 Subject: [PATCH] Checking two locations for serve. --- scripts/ubuntu_20.04_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ubuntu_20.04_install.sh b/scripts/ubuntu_20.04_install.sh index fefc6a00..203cd0b0 100755 --- a/scripts/ubuntu_20.04_install.sh +++ b/scripts/ubuntu_20.04_install.sh @@ -28,7 +28,7 @@ pip3 --version || ( pip3 install -r /opt/wrolpi/requirements.txt # Build React app -[ ! -f /usr/local/bin/serve ] && npm -g install serve +[[ ! -f /usr/local/bin/serve || ! -f /usr/bin/serve ]] && npm -g install serve cd /opt/wrolpi/app || exit 5 npm install || npm install || npm install || npm install # try install multiple times npm run build