From 2955763cd6ad84659f2accf0ff9b044e93cbd592 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 16 Apr 2023 18:48:15 +0200 Subject: [PATCH] Fix NPM requirement --- scripts/_common.sh | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 024c6ab..3fa62d8 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,7 +8,7 @@ pkg_dependencies="postgresql postgresql-contrib libpq-dev" NODEJS_VERSION="18" -NPM_VERSION="8.11.0" +NPM_VERSION=">=8.11" main_domain=$(cat /etc/yunohost/current_host) diff --git a/scripts/install b/scripts/install index 6dd08a9..5f0190c 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$NPM_VERSION + $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 a9b9e20..4e525ee 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@$NPM_VERSION + $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