Update Node.js 16.x installation documentation
This commit is contained in:
parent
1d15e379a4
commit
66490e4ed7
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue