Compare commits

...

1 Commits

Author SHA1 Message Date
5672ad6e6f Update tools.func 2025-06-26 17:01:42 +02:00

View File

@ -74,6 +74,15 @@ function setup_nodejs() {
fi
export NODE_OPTIONS="--max-old-space-size=4096"
# Ensure valid working directory for npm (avoids uv_cwd error)
if [[ ! -d /opt ]]; then
mkdir -p /opt
fi
cd /opt || {Add commentMore actions
msg_error "Failed to set safe working directory before npm install"
exit 1
}
# Install global Node modules
if [[ -n "$NODE_MODULE" ]]; then