From b84bc85731ef875c4d2b09cc72524a5c8d0613d2 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:12:58 +0200 Subject: [PATCH] don't install dependencies globally --- scripts/install | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index e87f051..5f0983b 100755 --- a/scripts/install +++ b/scripts/install @@ -16,13 +16,6 @@ ynh_script_progression --message="Installing dependencies..." --weight=5 ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version -# Install Yarn -ynh_npm install --global yarn - -# Install vite -ynh_npm install --global vite - - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -53,7 +46,8 @@ ynh_script_progression --message="Building __APP__..." pushd $install_dir ynh_use_nodejs - + ynh_npm install yarn + ynh_npm install vite 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 install --network-timeout=100000