From 32f1d5edd12bc059e0dba5b83f11ffcc7a284eed Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 13 Dec 2024 12:17:39 -0400 Subject: [PATCH] Run npm install from spiri-base folder --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 91de1c5..55da2c2 100644 --- a/Makefile +++ b/Makefile @@ -185,9 +185,9 @@ setup-webapp-service: cd /home/spiri/Spiri-Base && git pull || (echo "Error updating repository. Check network and repository access." && exit 1); \ else \ git clone https://git.spirirobotics.com/aepko/Spiri-Base.git /home/spiri/Spiri-Base || (echo "Error cloning repository. Check network and repository access." && exit 1); \ - cd ~/Spiri-Base && git sparse-checkout init --cone && git sparse-checkout set .output; \ - $(SUDO) npm install; \ + cd /home/spiri/Spiri-Base && git sparse-checkout init --cone && git sparse-checkout set .output; \ fi; + @cd /home/spiri/Spiri-Base && $(SUDO) npm install; @if [ -f $(CURDIR)/webapp.service ]; then \ $(SUDO) cp $(CURDIR)/webapp.service /etc/systemd/system/webapp.service; \ $(SUDO) systemctl enable webapp.service; \