Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk fbbd4485b5 tools.func: configure pnpm to allow all build scripts for LXC container environments 2026-07-01 22:13:58 +02:00
2 changed files with 12 additions and 2 deletions
+6 -2
View File
@@ -20,12 +20,16 @@ $STD apt install -y \
msg_ok "Installed Dependencies"
PYTHON_VERSION="3.11" setup_uv
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
NODE_VERSION="22" setup_nodejs #needed because better-sql break
msg_info "Installing FlowiseAI (Patience)"
PYTHON_BIN="$(uv python find 3.11)"
export npm_config_python="$PYTHON_BIN"
$STD pnpm add -g flowise
$STD npm install -g flowise \
@opentelemetry/exporter-trace-otlp-grpc \
@opentelemetry/exporter-trace-otlp-proto \
@opentelemetry/sdk-trace-node \
langchainhub
mkdir -p /opt/flowiseai
curl -fsSL "https://raw.githubusercontent.com/FlowiseAI/Flowise/main/packages/server/.env.example" -o "/opt/flowiseai/.env"
msg_ok "Installed FlowiseAI"
+6
View File
@@ -7657,6 +7657,12 @@ setup_nodejs() {
fi
fi
# pnpm v10+ blocks dependency build scripts by default (ERR_PNPM_IGNORED_BUILDS).
# In a container environment all installed packages are trusted, so we enable builds globally.
if command -v pnpm >/dev/null 2>&1; then
pnpm config set --global dangerouslyAllowAllBuilds true >/dev/null 2>&1 || true
fi
if [[ "$NODE_COREPACK_ENABLE" == "1" ]] && ((wants_corepack)) && command -v corepack >/dev/null 2>&1; then
msg_info "Enabling corepack"
if $STD corepack enable 2>/dev/null; then