From 82c708415d615f235605076a54abc6f2aa5a6aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 2 Jun 2024 22:35:19 +0200 Subject: [PATCH] Fix upgrade: npm i -g requires root permissions --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6f32fa8..077895d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,7 +40,7 @@ ynh_script_progression --message="Building app... (this will take some time and pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm i -g npm + ynh_exec_warn_less npm i -g npm ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --production popd