From 2d772365d278809dec6b1c95e7edd8d0fcf7f4ed Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 16 Sep 2023 14:19:00 +0200 Subject: [PATCH] Appease npm warning --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 2f37431..96fb607 100755 --- a/scripts/install +++ b/scripts/install @@ -49,7 +49,7 @@ pushd $install_dir # The version shipped by default with n does not work, there is a # weird dependency issue about unsupported platform and fsevent. # See https://github.com/ToolJet/ToolJet/pull/1752 - $ynh_npm install -g npm@"$NPM_VERSION" + $ynh_npm install npm@"$NPM_VERSION" --location=global ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install -f ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build diff --git a/scripts/upgrade b/scripts/upgrade index 186b1ad..0908be5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,7 +70,7 @@ pushd $install_dir # The version shipped by default with n does not work, there is a # wierd dependency issue about unsupported platform and fsevent. # See https://github.com/ToolJet/ToolJet/pull/1752 - $ynh_npm install -g npm@"$NPM_VERSION" + $ynh_npm install npm@"$NPM_VERSION" --location=global ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install -f ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build