From be29bb153825edf4d8848ee0e42d4a513dc14544 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 2 Jul 2026 09:07:04 +0200 Subject: [PATCH] tools.func: configure pnpm to allow all build scripts for LXC container environments (#15532) --- misc/tools.func | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index d3238bd7e..742244c3a 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -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