diff --git a/scripts/install b/scripts/install index 6b4ec54..e588b49 100755 --- a/scripts/install +++ b/scripts/install @@ -93,10 +93,12 @@ pushd "$install_dir/backend" ynh_exec_warn_less ./update_i18n_json_file.sh || exit 1 popd -pushd "$install_dir" - echo 'nodeLinker: node-modules' >> .yarnrc.yml - ynh_exec_warn_less yarn install - ynh_exec_warn_less ./build_full_frontend.sh +pushd $install_dir + ynh_use_nodejs + echo 'nodeLinker: node-modules' >> .yarnrc.yml + ynh_exec_warn_less env $ynh_node_load_PATH corepack enable && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack prepare pnpm@latest --activate + ynh_exec_warn_less env $ynh_node_load_PATH COREPACK_ENABLE_DOWNLOAD_PROMPT=0 pnpm install + ynh_exec_warn_less env $ynh_node_load_PATH COREPACK_ENABLE_DOWNLOAD_PROMPT=0 ./build_full_frontend.sh popd chmod 750 "$install_dir"