From c10f20f4b74a85e5ef9515e8fbaaefe3a3703278 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Sun, 9 Feb 2020 11:13:17 +0200 Subject: [PATCH] First install NPM then change directories --- deployment_scripts/deploy_linux.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment_scripts/deploy_linux.sh b/deployment_scripts/deploy_linux.sh index 664b30926..48991c890 100755 --- a/deployment_scripts/deploy_linux.sh +++ b/deployment_scripts/deploy_linux.sh @@ -175,7 +175,6 @@ openssl x509 -req -days 366 -in cc/server.csr -signkey cc/server.key -out cc/ser # Update node log_message "Installing nodejs" -cd "$ISLAND_PATH/cc/ui" || handle_error # shellcheck disable=SC2086 if exists curl; then curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - @@ -183,6 +182,8 @@ else wget -q -O - https://deb.nodesource.com/setup_12.x | sudo -E bash - fi sudo apt-get install -y nodejs + +cd "$ISLAND_PATH/cc/ui" || handle_error npm install sass-loader node-sass webpack --save-dev npm update