From cf0a42d5e9a5bad8780a7bc4aeb255d76b562d6b Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Sat, 14 Dec 2024 02:34:51 +0200 Subject: [PATCH] Added nodejs installers --- install-nodejs.sh | 11 +++++++++++ install-nvm.sh | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 install-nodejs.sh create mode 100755 install-nvm.sh diff --git a/install-nodejs.sh b/install-nodejs.sh new file mode 100755 index 0000000..088e119 --- /dev/null +++ b/install-nodejs.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +wget https://rpm.nodesource.com/setup_22.x -O nodesource_setup.sh + +bash nodesource_setup.sh + +dnf check-update + +dnf install nodejs -y + + diff --git a/install-nvm.sh b/install-nvm.sh new file mode 100755 index 0000000..e2de785 --- /dev/null +++ b/install-nvm.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +VERSION="22.12.0" + +wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh -O nvm-installer.sh + +bash nvm-installer.sh + +source ~/.bashrc + +nvm --version + +nvm ls-remote + +nvm install "${VERSION}" + +nvm ls + +nvm use "${VERSION}" + +nvm alias default "${VERSION}"