Compare commits

..

3 Commits

Author SHA1 Message Date
MickLesk 71da6d96dc setup_nodejs: bypass npm allowScripts policy globally on npm >=11 2026-08-04 23:13:12 +02:00
community-scripts-pr-app[bot] 26abc114fd Update .app files (#16269)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2026-08-04 21:06:45 +02:00
community-scripts-pr-app[bot] 5202ffcea2 Update CHANGELOG.md (#16270)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-04 19:02:39 +00:00
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -548,6 +548,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- tools.func: never delete ubuntu.sources (or other distro base sources) as orphaned [@MickLesk](https://github.com/MickLesk) ([#16250](https://github.com/community-scripts/ProxmoxVE/pull/16250))
- tools.func: complete a stale/partial backup manifest instead of trusting it as-is [@MickLesk](https://github.com/MickLesk) ([#16252](https://github.com/community-scripts/ProxmoxVE/pull/16252))
- #### 🔧 Refactor
- Refactor: harmonize tools/addon and move boilerplate into core.func [@MickLesk](https://github.com/MickLesk) ([#16202](https://github.com/community-scripts/ProxmoxVE/pull/16202))
## 2026-08-03
### 🚀 Updated Scripts
+10
View File
@@ -7732,6 +7732,16 @@ 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
$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.
# Priority:
# 1) NODE_OPTIONS (caller/user override)