Compare commits

..

3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
93dd3fb784 fix: cap pnpm at version 10 in setup_nodejs to avoid v11+ ERR_PNPM_IGNORED_BUILDS
Agent-Logs-Url: https://github.com/community-scripts/ProxmoxVE/sessions/5cf5ae64-5179-4b7a-8943-0b29c4dbd0d9

Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
2026-05-08 21:19:57 +00:00
community-scripts-pr-app[bot]
83575e5972 Update CHANGELOG.md (#14345)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-08 19:53:26 +00:00
Letter N
6329ad7fa2 oops (#14328) 2026-05-08 21:52:53 +02:00
5 changed files with 19 additions and 11 deletions

View File

@@ -464,6 +464,7 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- #### 🐞 Bug Fixes
- [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

View File

@@ -27,16 +27,9 @@ 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 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
$STD npm install -g flowise --upgrade
systemctl start flowise
msg_ok "Updated FlowiseAI"
msg_ok "Updated successfully!"

View File

@@ -45,6 +45,7 @@ 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" NODE_MODULE="pnpm" setup_nodejs
NODE_VERSION="20" setup_nodejs
msg_info "Installing FlowiseAI (Patience)"
$STD pnpm add -g flowise \
$STD npm install -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=flowise start
ExecStart=npx flowise start
Restart=always
[Install]

View File

@@ -6510,6 +6510,19 @@ function setup_nodejs() {
MODULE_REQ_VERSION="latest"
fi
# Cap pnpm at version 10 to avoid v11+ breaking changes (ERR_PNPM_IGNORED_BUILDS)
if [[ "$MODULE_NAME" == "pnpm" ]]; then
if [[ "$MODULE_REQ_VERSION" == "latest" ]]; then
MODULE_REQ_VERSION="10"
else
local pnpm_major
pnpm_major=$(echo "${MODULE_REQ_VERSION#v}" | cut -d'.' -f1)
if [[ "$pnpm_major" =~ ^[0-9]+$ ]] && ((pnpm_major >= 11)); then
MODULE_REQ_VERSION="10"
fi
fi
fi
# Check if the module is already installed
if $STD npm list -g --depth=0 "$MODULE_NAME" 2>&1 | grep -q "$MODULE_NAME@"; then
MODULE_INSTALLED_VERSION="$(npm list -g --depth=0 "$MODULE_NAME" 2>&1 | grep "$MODULE_NAME@" | awk -F@ '{print $2}' 2>/dev/null | tr -d '[:space:]' || echo '')"