change Node.js install, updated bash command

This commit is contained in:
chmistry 2024-08-28 09:41:58 +02:00
parent 3ef3ac86e6
commit a94b94de98

View file

@ -77,8 +77,9 @@ msg_info "Installing Node.js"
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
. ~/.bashrc
$STD nvm install 16.20.1
ln -sf /root/.nvm/versions/node/v16.20.1/bin/node /usr/bin/node
$STD nvm install 20
$STD export NODE_VERSION="$( node -v )"
ln -sf /root/.nvm/versions/node/$NODE_VERSION/bin/node /usr/bin/node
msg_ok "Installed Node.js"
msg_info "Installing ${APPLICATION}"