diff --git a/scripts/install b/scripts/install index 88c32ef..2b98cf0 100755 --- a/scripts/install +++ b/scripts/install @@ -132,9 +132,11 @@ cp "$install_dir/build/server-ce/config/custom-environment-variables.json" "$ins ynh_secure_remove --file="$install_dir/build" -ynh_script_progression --message="Building app..." +ynh_script_progression --message="Building app... This may take a LOT of time depending of your CPU" --weight=25 pushd "$install_dir/live" ynh_use_nodejs + ynh_exec_warn_less npm cache clean --force + ynh_exec_warn_less npm install ynh_exec_warn_less npm ci popd diff --git a/scripts/upgrade b/scripts/upgrade index 38c9358..6ac7be2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -153,7 +153,8 @@ cp "$install_dir/build/server-ce/config/custom-environment-variables.json" "$ins ynh_script_progression --message="Building app... This may take a LOT of time depending of your CPU" --weight=25 pushd "$install_dir/live" ynh_use_nodejs - ynh_exec_warn_less npm install + ynh_exec_warn_less npm cache clean --force + ynh_exec_warn_less npm install ynh_exec_warn_less npm ci popd