First install NPM then change directories
This commit is contained in:
parent
798babe4cc
commit
c10f20f4b7
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue