Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the non-depreciated nodejs installation method #15

Open
fdeegbe opened this issue Oct 2, 2023 · 0 comments
Open

Implement the non-depreciated nodejs installation method #15

fdeegbe opened this issue Oct 2, 2023 · 0 comments

Comments

@fdeegbe
Copy link

fdeegbe commented Oct 2, 2023

the current install.sh method of installing nodejs is depreciated. You can find documentation on the newer method here: . An example of the modified script may look like this:

#!/usr/bin/env 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=20
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

cd "$(dirname "$0")"

npm install

Haven't tested it yet though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant