Added nodejs installers

This commit is contained in:
Eliezer Croitoru 2024-12-14 02:34:51 +02:00
parent e3807b8fb5
commit cf0a42d5e9
2 changed files with 32 additions and 0 deletions

11
install-nodejs.sh Executable file
View File

@ -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

21
install-nvm.sh Executable file
View File

@ -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}"