From d31fd08d69ac5d7a859b7637d643c668096a5c91 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 26 Jun 2025 19:04:14 +0200 Subject: [PATCH] fix nodejs --- misc/tools.func | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 8529e2c17..078df4bd0 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -64,22 +64,16 @@ function setup_nodejs() { exit 1 fi - # Update to latest npm - $STD npm install -g npm@latest || { - msg_error "Failed to update npm to latest version" - exit 1 - } - msg_ok "Setup Node.js ${NODE_VERSION}" fi export NODE_OPTIONS="--max-old-space-size=4096" - -# Ensure valid working directory for npm (avoids uv_cwd error) + + # Ensure valid working directory for npm (avoids uv_cwd error) if [[ ! -d /opt ]]; then mkdir -p /opt fi - cd /opt || {Add commentMore actions + cd /opt || { msg_error "Failed to set safe working directory before npm install" exit 1 }