From 7d5e1e04aefb20851a488ae9c27e4fb90c5d5fb8 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 6 Aug 2026 13:15:57 +0200 Subject: [PATCH] Update misc/tools.func Co-authored-by: Sam Heinz --- misc/tools.func | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index e5f09c56a..a1bc3bf31 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -7732,13 +7732,7 @@ setup_nodejs() { fi fi - # npm >=11 skips native-module install/rebuild scripts (better-sqlite3, bcrypt, - # argon2, ...) unless each package is explicitly allowlisted, silently leaving - # native deps unbuilt. Bypass the policy globally instead of allowlisting - # per script. - local npm_major - npm_major=$(npm -v 2>/dev/null | cut -d. -f1) - if [[ "${npm_major:-0}" -ge 11 ]]; then + if [[ "$(npm -v 2>/dev/null | cut -d. -f1)" -ge 11 ]]; then $STD npm config set dangerously-allow-all-scripts true --location=global 2>/dev/null || true fi