From 1b30c8f94040079b8e6786678656cb47800eeebc Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:42:21 +0200 Subject: [PATCH] don't install npm globally --- scripts/upgrade | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d68c1ec..99292c8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,12 +25,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@latest - -# Install Yarn -ynh_npm install --global yarn - #================================================= # "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...) #================================================= @@ -52,7 +46,7 @@ ynh_script_progression --message="Building app... This may take quiete some time pushd $install_dir ynh_use_nodejs - + ynh_npm install yarn ynh_script_progression --message="Fetching Yarn dev dependencies... This can be very long, be patient !" --weight=18 ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --network-timeout=100000