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