From 03aa4228b9615c153a1ce18897188f2d7e4b8365 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Fri, 8 May 2026 21:45:08 +0200 Subject: [PATCH] fix(flowiseai): switch from npm to pnpm for installation apify-client (transitive dependency of Flowise) enforces pnpm via a preinstall hook: 'npx only-allow pnpm'. This causes npm install -g to fail with exit code 254 because the only-allow check detects npm is being used. Switch to pnpm add -g to satisfy the enforced package manager requirement. Also replace 'npx flowise start' with 'flowise start' in the service since the pnpm global binary is directly accessible in PATH after setup_nodejs. Fixes #14330 --- install/flowiseai-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/flowiseai-install.sh b/install/flowiseai-install.sh index bf47ab06e..81c40b827 100644 --- a/install/flowiseai-install.sh +++ b/install/flowiseai-install.sh @@ -13,10 +13,10 @@ setting_up_container network_check update_os -NODE_VERSION="20" setup_nodejs +NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs msg_info "Installing FlowiseAI (Patience)" -$STD npm install -g flowise \ +$STD pnpm add -g flowise \ @opentelemetry/exporter-trace-otlp-grpc \ @opentelemetry/exporter-trace-otlp-proto \ @opentelemetry/sdk-trace-node \ @@ -33,7 +33,7 @@ After=network.target [Service] EnvironmentFile=/opt/flowiseai/.env -ExecStart=npx flowise start +ExecStart=flowise start Restart=always [Install]