mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-15 13:04:56 +02:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user