From ee8fb72c26a99b1c5fb7cd036aa7ec11f6f261e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hil=C3=A1rio=20Ara=C3=BAjo?= <47309365+hilarioaraujo@users.noreply.github.com> Date: Tue, 8 Aug 2023 16:26:57 +0100 Subject: [PATCH] Bug fix: Install first the npm package I was trying to install the Rpanion and I received a bug message in the npm installation. Then i discovered and fix. First it's needed to install the npm package with "apt install npm" then we have to install the react-scripts with the "npm install" --- deploy/build_rpanion.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/build_rpanion.sh b/deploy/build_rpanion.sh index f9378ccf..84dbd605 100755 --- a/deploy/build_rpanion.sh +++ b/deploy/build_rpanion.sh @@ -20,6 +20,7 @@ NPM_INSTALL_EXIT_CODE=0 # Loop through the retries for i in $(seq 1 $MAX_RETRIES); do echo "Running npm install (attempt $i)..." + sudo apt install -y npm npm install NPM_INSTALL_EXIT_CODE=$?