31 lines
580 B
Bash
31 lines
580 B
Bash
#!/bin/bash
|
|
|
|
#aur/yay setup
|
|
echo "Installing yay"
|
|
cd ~
|
|
mkdir install-tmp
|
|
cd install-tmp
|
|
git clone https://aur.archlinux.org/yay.git
|
|
cd yay
|
|
makepkg -si
|
|
yay --version
|
|
cd ~/install-tmp
|
|
# Download and install nvm:
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
|
|
|
|
# in lieu of restarting the shell
|
|
\. "$HOME/.nvm/nvm.sh"
|
|
rustup default stable
|
|
|
|
# Download and install Node.js:
|
|
nvm install 22
|
|
|
|
# Verify the Node.js version:
|
|
node -v # Should print "v22.14.0".
|
|
nvm current # Should print "v22.14.0".
|
|
|
|
# Verify npm version:
|
|
npm -v # Should print "10.9.2".
|
|
|
|
|