Compare commits

..

3 Commits

Author SHA1 Message Date
MickLesk
c4adc1c99c fix(flowiseai): ensure setup_nodejs is called before updating FlowiseAI 2026-05-08 21:48:50 +02:00
MickLesk
52b7266db2 fix(flowiseai): update_script: switch npm to pnpm, fix service ExecStart
- Use pnpm add -g instead of npm install -g (apify-client enforces pnpm)
- Call setup_nodejs to ensure pnpm is available in existing containers
- Migrate ExecStart from 'npx flowise start' to 'flowise start' in
  existing installations on update
2026-05-08 21:47:51 +02:00
MickLesk
03aa4228b9 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
2026-05-08 21:45:08 +02:00
6 changed files with 13 additions and 16 deletions

View File

@@ -464,20 +464,12 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- #### 🐞 Bug Fixes
- wishlist: pin pnpm to v10 to match engine requirements [@MickLesk](https://github.com/MickLesk) ([#14342](https://github.com/community-scripts/ProxmoxVE/pull/14342))
- [pelican] fix env copy regression [@LetterN](https://github.com/LetterN) ([#14328](https://github.com/community-scripts/ProxmoxVE/pull/14328))
- fix(homepage): fix ERR_PNPM_IGNORED_BUILDS error [@Sergih28](https://github.com/Sergih28) ([#14315](https://github.com/community-scripts/ProxmoxVE/pull/14315))
- #### ✨ New Features
- tools.func: add setup_nltk as new function [@MickLesk](https://github.com/MickLesk) ([#14314](https://github.com/community-scripts/ProxmoxVE/pull/14314))
### 💾 Core
- #### 🐞 Bug Fixes
- tools.func: fix meilisearch import-dump background process handling [@MickLesk](https://github.com/MickLesk) ([#14341](https://github.com/community-scripts/ProxmoxVE/pull/14341))
## 2026-05-07
### 🚀 Updated Scripts

View File

@@ -27,9 +27,16 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
msg_info "Updating FlowiseAI (this may take some time)"
systemctl stop flowise
$STD npm install -g flowise --upgrade
$STD pnpm add -g flowise
if grep -q 'ExecStart=npx flowise start' /etc/systemd/system/flowise.service; then
sed -i 's|ExecStart=npx flowise start|ExecStart=flowise start|' /etc/systemd/system/flowise.service
systemctl daemon-reload
fi
systemctl start flowise
msg_ok "Updated FlowiseAI"
msg_ok "Updated successfully!"

View File

@@ -45,7 +45,6 @@ function update_script() {
$STD php artisan down
msg_ok "Stopped Service"
mkdir -p /opt/backup
cp -a /opt/pelican-panel/.env /opt/backup
mkdir -p /opt/backup/storage/app/
cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/

View File

@@ -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]

View File

@@ -20,7 +20,7 @@ $STD apt install -y \
caddy
msg_ok "Installed dependencies"
NODE_VERSION="24" NODE_MODULE="pnpm@10" setup_nodejs
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
fetch_and_deploy_gh_release "wishlist" "cmintey/wishlist" "tarball"
LATEST_APP_VERSION=$(get_latest_github_release "cmintey/wishlist")

View File

@@ -7588,7 +7588,7 @@ function setup_meilisearch() {
# Start meilisearch with --import-dump flag
# This is a one-time import that happens during startup
/usr/bin/meilisearch --config-file-path /etc/meilisearch.toml --import-dump "$DUMP_FILE" >/dev/null 2>&1 &
/usr/bin/meilisearch --config-file-path /etc/meilisearch.toml --import-dump "$DUMP_FILE" &
local MEILI_PID=$!
# Wait for meilisearch to become healthy (import happens during startup)
@@ -7611,7 +7611,6 @@ function setup_meilisearch() {
# Stop the manual process
kill $MEILI_PID 2>/dev/null || true
wait $MEILI_PID 2>/dev/null || true
sleep 2
# Start via systemd for proper management