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:
parent
e702991f7a
commit
2955763cd6
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue