npm install other attempt

This commit is contained in:
Hadrien 2021-11-02 01:45:47 +03:00
parent c91e51fa62
commit de396b3bbd

View file

@ -210,9 +210,9 @@ ynh_add_nginx_config
# SPECIFIC SETUP
#=================================================
ynh_script_progression --message="Installing Uptime Kuma npm dependencies..." --time --weight=5
# ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
# ynh_exec_warn_less /usr/local/n/versions/node/14.18.1/bin/npm install
/usr/local/n/versions/node/14.18.1/bin/npm install
# ynh_exec_warn_less ynh_exec_as $app $ynh_npm install
cd $final_path && $ynh_npm install
# cd $final_path && /usr/local/n/versions/node/14.18.1/bin/npm install
ynh_script_progression --message="Downloading Uptime Kuma frontend..." --time --weight=1
ynh_exec_warn_less wget https://github.com/louislam/uptime-kuma/releases/download/1.10.0/dist.tar.gz
ynh_exec_as $app tar -xvf dist.tar.gz --directory=$final_path