mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 10:42:53 +02:00
Update dashy-install.sh
update node.js to 20.x
This commit is contained in:
parent
e842d2ec3d
commit
9bbe81fe42
@ -19,13 +19,15 @@ $STD apt-get install -y sudo
|
||||
$STD apt-get install -y mc
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing Node.js (Patience)"
|
||||
$STD apt-get install -y npm
|
||||
$STD npm cache clean -f
|
||||
$STD npm install -g n
|
||||
$STD n 16.20.1
|
||||
$STD npm install -g pnpm
|
||||
ln -sf /usr/local/bin/node /usr/bin/node
|
||||
msg_info "Setting up Node.js Repository"
|
||||
mkdir -p /etc/apt/keyrings
|
||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||
msg_ok "Set up Node.js Repository"
|
||||
|
||||
msg_info "Installing Node.js"
|
||||
$STD apt-get update
|
||||
$STD apt-get install -y nodejs
|
||||
msg_ok "Installed Node.js"
|
||||
|
||||
msg_info "Installing Yarn"
|
||||
|
Loading…
Reference in New Issue
Block a user