From 0b1c319ec4c3c03be50b659b2af663c7beb7c16c Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 08:25:21 +0200 Subject: [PATCH] remove npm install global --- scripts/upgrade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index ccb8e94..c42c741 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,9 +18,6 @@ ynh_script_progression --message="Installing dependencies..." --weight=5 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version -# Upgrade NPM -ynh_npm install --global npm@8.1.2 - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -60,6 +57,7 @@ chown $app:$app "$install_dir/.env" pushd $install_dir ynh_use_nodejs + ynh_npm install npm@latest ynh_script_progression --message="npm install... This can be very long, be patient !" --weight=18 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm ci --quiet --production --prefer-offline --network-timeout=100000 @@ -110,4 +108,4 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of $app completed" --last \ No newline at end of file +ynh_script_progression --message="Upgrade of $app completed" --last