13 lines
316 B
Bash
13 lines
316 B
Bash
#!/bin/bash
|
|
|
|
# NVM
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
|
|
NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
|
|
|
# Install NodeJS LTS
|
|
nvm install --lts
|
|
|
|
# Install global packages
|
|
npm i -g yarn |