Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/runtime.func
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,12 @@ setup_nodejs() {
fi
fi

# npm 11+ skips install hooks not covered by allowScripts and still exits 0,
# so apps with native addons install with nothing built.
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.
# Priority:
# 1) NODE_OPTIONS (caller/user override)
Expand Down
Loading