install yarn

This commit is contained in:
Andrejus
2020-03-30 21:18:19 +01:00
parent ae4fc2832c
commit aa3d363ae6
4 changed files with 20 additions and 5 deletions

17
install/21-yarn.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# yarn is installed
if not_installed "yarn"; then
echo "Installing yarn..."
# Install nvm
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
update
sudo apt install --no-install-recommends yarn
fi
echo "yarn is installed"
yarn --version