new nodejs install method

This commit is contained in:
tteckster 2023-09-01 07:19:05 -04:00 committed by GitHub
parent 49662ddd3d
commit c17e8d4fc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 72 additions and 18 deletions

View file

@ -33,7 +33,9 @@ $STD apt-get -y install \
pkg-config \
curl \
sudo \
mc
mc \
ca-certificates \
gnupg
msg_ok "Installed Dependencies"
if [[ "$CTTYPE" == "0" ]]; then
@ -63,10 +65,12 @@ $STD apt-get -y install \
msg_ok "Installed GStreamer"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get update
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"