Compare commits

...

2 Commits

Author SHA1 Message Date
CanbiZ (MickLesk) 7d5e1e04ae Update misc/tools.func
Co-authored-by: Sam Heinz <sam@samheinz.com>
2026-08-06 13:15:57 +02:00
MickLesk 71da6d96dc setup_nodejs: bypass npm allowScripts policy globally on npm >=11 2026-08-04 23:13:12 +02:00
+4
View File
@@ -7732,6 +7732,10 @@ setup_nodejs() {
fi fi
fi fi
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
# Set a safe default heap limit for Node.js builds if not explicitly provided. # Set a safe default heap limit for Node.js builds if not explicitly provided.
# Priority: # Priority:
# 1) NODE_OPTIONS (caller/user override) # 1) NODE_OPTIONS (caller/user override)