Skip to content

Commit

Permalink
Update README.md for current nodesource repo changes
Browse files Browse the repository at this point in the history
nodesource uses a nodistro codename now and it's not required to use a specific disto codename anmyore. See https://github.com/nodesource/distributions/tree/master#new-update-%EF%B8%8F
  • Loading branch information
bjoernricks committed Oct 16, 2023
1 parent 124aa2a commit d55bac5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,16 @@ Prerequisites for GSA:
To install nodejs the following commands can be used

```bash
export VERSION=node_18.x
export VERSION=18
export KEYRING=/usr/share/keyrings/nodesource.gpg
export DISTRIBUTION="$(lsb_release -s -c)"

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
gpg --no-default-keyring --keyring "$KEYRING" --list-keys

echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRIBUTION main" | sudo tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRIBUTION main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/node_$VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/node_$VERSION.x nodistro main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list

sudo apt-get update && sudo apt-get install nodejs
sudo apt update && sudo apt install nodejs
```

Change into the gsa source directory and delete the possible existing build output
Expand Down

0 comments on commit d55bac5

Please sign in to comment.