Added nodejs installers
This commit is contained in:
parent
e3807b8fb5
commit
cf0a42d5e9
11
install-nodejs.sh
Executable file
11
install-nodejs.sh
Executable 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
21
install-nvm.sh
Executable 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}"
|
Loading…
Reference in New Issue
Block a user