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

Use package manager to install Node #29

Closed
FinnIckler opened this issue Sep 18, 2023 · 1 comment
Closed

Use package manager to install Node #29

FinnIckler opened this issue Sep 18, 2023 · 1 comment

Comments

@FinnIckler
Copy link

The nodesource script way of installing node

RUN curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR.x | bash -
is deprecated and will make you wait for a minute if you are using it.
The way to do it now is using the deb repository

Like

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
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 install nodejs -y

See https://github.com/nodesource/distributions#debian-and-ubuntu-based-distributions

I could open a PR if needed.

@jeremy
Copy link
Member

jeremy commented Mar 12, 2024

Closed by #30

@jeremy jeremy closed this as completed Mar 12, 2024
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

2 participants