diff --git a/scripts/install b/scripts/install index 9ded27e..dee7d5d 100755 --- a/scripts/install +++ b/scripts/install @@ -55,8 +55,8 @@ ynh_script_progression --message="Building app..." --weight=15 pushd "$install_dir" ynh_use_nodejs - corepack enable - corepack prepare pnpm@latest --activate + env $ynh_node_load corepack enable + env $ynh_node_load COREPACK_ENABLE_DOWNLOAD_PROMPT=0 prepare pnpm@latest --activate ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install --frozen-lockfile ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run init