fix nodejs

This commit is contained in:
CanbiZ
2025-06-26 19:04:14 +02:00
committed by GitHub
parent e6230de022
commit d31fd08d69

View File

@ -64,12 +64,6 @@ 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
@ -79,7 +73,7 @@ function setup_nodejs() {
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
}