#author("2020-10-15T23:41:51+09:00","default:ryuichi","ryuichi")
* yarnのインストール - Ubuntu [#oefa26a8]
** YarnリポジトリのGPGキーの追加とソースURLの追加 [#v5d831fd]
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
apt-key list
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
** Yarnのインストール [#zf1c1953]
sudo apt update
sudo apt install --no-install-recommends yarn
dpkg -L yarn
which yarn
yarn --version
- 依存関係でnodeをインストールするので、nodeをNVMなどで別に管理するなら'''--no-install-recommends'''でインストールを防ぐ
** 参考 [#t446e7ad]
https://linuxize.com/post/how-to-install-yarn-on-ubuntu-20-04/