Refactor Yarn installation into setup_nodejs

Removed Yarn installation check and integrated it into the setup_nodejs function.
This commit is contained in:
CanbiZ 2025-10-20 07:51:33 +02:00 committed by GitHub
parent 60be24660d
commit b34a449d9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,12 +28,7 @@ function update_script() {
exit
fi
if ! command -v yarn &>/dev/null; then
msg_info "Installing Yarn"
$STD npm install -g yarn
msg_ok "Installed Yarn"
fi
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
export NODE_OPTIONS="--openssl-legacy-provider"
RELEASE=$(curl -fsSL https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |