Update Node.js 16.x installation documentation

This commit is contained in:
daniel (taco) 2023-09-16 14:30:42 -04:00 committed by GitHub
parent 1d15e379a4
commit 66490e4ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,14 @@ apt install -y curl wget gnupg apt-transport-https lsb-release ca-certificates
#### Node.js {#node-js}
```bash
curl -sL https://deb.nodesource.com/setup_16.x | bash -
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=16
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y
```
#### PostgreSQL {#postgresql}