First install NPM then change directories

This commit is contained in:
Daniel Goldberg 2020-02-09 11:13:17 +02:00
parent 798babe4cc
commit c10f20f4b7
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,6 @@ openssl x509 -req -days 366 -in cc/server.csr -signkey cc/server.key -out cc/ser
# Update node # Update node
log_message "Installing nodejs" log_message "Installing nodejs"
cd "$ISLAND_PATH/cc/ui" || handle_error
# shellcheck disable=SC2086 # shellcheck disable=SC2086
if exists curl; then if exists curl; then
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - 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 - wget -q -O - https://deb.nodesource.com/setup_12.x | sudo -E bash -
fi fi
sudo apt-get install -y nodejs sudo apt-get install -y nodejs
cd "$ISLAND_PATH/cc/ui" || handle_error
npm install sass-loader node-sass webpack --save-dev npm install sass-loader node-sass webpack --save-dev
npm update npm update