diff --git a/scripts/_common.sh b/scripts/_common.sh index b2a8d8e..024c6ab 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,6 +8,7 @@ pkg_dependencies="postgresql postgresql-contrib libpq-dev" NODEJS_VERSION="18" +NPM_VERSION="8.11.0" main_domain=$(cat /etc/yunohost/current_host) diff --git a/scripts/install b/scripts/install index 7556c4e..6dd08a9 100755 --- a/scripts/install +++ b/scripts/install @@ -123,7 +123,7 @@ pushd $final_path # 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@7.20.0 + $ynh_npm install -g npm$NPM_VERSION 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 992b406..a9b9e20 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -120,7 +120,7 @@ pushd $final_path # 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@7.20.0 + $ynh_npm install -g npm@$NPM_VERSION 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