Skip to content

Commit

Permalink
Merge pull request #4 from kmchmk/patch-2
Browse files Browse the repository at this point in the history
Update Debian & Ubuntu.md
  • Loading branch information
daniel-hiller authored Oct 14, 2023
2 parents a0c2cfe + 7a877e8 commit 68d2f61
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions docs/installl-planka/Debian & Ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,24 @@ Cloese the database with


### Nodejs
Installing Node.js with Apt Using a NodeSource PPA
Installing Node.js with Apt Using a [NodeSource](https://github.com/nodesource/distributions#nodejs) PPA

```bash
cd /tmp
sudo curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
```
# Download and import the Nodesource GPG key
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


You can inspect the contents of the downloaded script with nano (or your preferred text editor):
```bash
nano nodesource_setup.sh
```

Running third party shell scripts is not always considered a best practice, but in this case, NodeSource implements their own logic in order to ensure the correct commands are being passed to your package manager based on distro and version requirements. If you are satisfied that the script is safe to run, exit your editor, then run the script with sudo:
```bash
sudo bash nodesource_setup.sh
# Create deb repository
NODE_MAJOR=18
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
```

Then run
Then run update and install
```bash
sudo apt install nodejs
sudo apt-get update
sudo apt-get install nodejs -y
```

Verify that you’ve installed the new version by running node with the -v version flag:
Expand Down

0 comments on commit 68d2f61

Please sign in to comment.