9 lines
342 B
Bash
Executable file
9 lines
342 B
Bash
Executable file
# install node
|
|
|
|
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
|
apt update -y
|
|
apt install nodejs -y
|
|
node --version
|
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
sudo apt update && sudo apt install yarn
|