1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tooljet_ynh.git synced 2024-10-01 13:34:55 +02:00

Fix NPM requirement

This commit is contained in:
tituspijean 2023-04-16 18:48:15 +02:00
parent e702991f7a
commit 2955763cd6
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
pkg_dependencies="postgresql postgresql-contrib libpq-dev" pkg_dependencies="postgresql postgresql-contrib libpq-dev"
NODEJS_VERSION="18" NODEJS_VERSION="18"
NPM_VERSION="8.11.0" NPM_VERSION=">=8.11"
main_domain=$(cat /etc/yunohost/current_host) main_domain=$(cat /etc/yunohost/current_host)

View file

@ -123,7 +123,7 @@ pushd $final_path
# The version shipped by default with n does not work, there is a # The version shipped by default with n does not work, there is a
# wierd dependency issue about unsupported platform and fsevent. # wierd dependency issue about unsupported platform and fsevent.
# See https://github.com/ToolJet/ToolJet/pull/1752 # 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 install -f
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build

View file

@ -120,7 +120,7 @@ pushd $final_path
# The version shipped by default with n does not work, there is a # The version shipped by default with n does not work, there is a
# wierd dependency issue about unsupported platform and fsevent. # wierd dependency issue about unsupported platform and fsevent.
# See https://github.com/ToolJet/ToolJet/pull/1752 # 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 install -f
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run build