diff --git a/scripts/install b/scripts/install index 56f704f..1a2c929 100644 --- a/scripts/install +++ b/scripts/install @@ -110,8 +110,9 @@ ynh_script_progression --message="Installing The Lounge..." pushd $final_path -yarn install && ynh_exec_warn_less NODE_ENV=production yarn build - + ynh_use_nodejs + yarn install && ynh_exec_warn_less NODE_ENV=production yarn build + popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 294f38c..abca621 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,7 +127,8 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st if [ "$upgrade_type" == "UPGRADE_APP" ] then pushd $final_path - + + ynh_use_nodejs yarn install && ynh_exec_warn_less NODE_ENV=production yarn build popd