install yarn
yarnをUbuntuにinstallする
2023-02-26 19:27:03 Corepackからinstallする形式に変わってた
$ corepack enable
https://yarnpkg.com/getting-started/install
The preferred way to manage Yarn is through Corepack, a new binary shipped with all Node.js releases starting from 16.10. It acts as an intermediary between you and Yarn, and lets you use different package manager versions across multiple projects without having to check-in the Yarn binary anymore.
install_apps.shを書き換えておかなくちゃtakker.icon
Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/bin/pnpm'が出たときはsudoをつけて実行する
$ sudo corepack enable
References
https://self-development.info/%E3%80%90ubuntu%E3%80%91yarnをインストールしてパッケージ管理を行う/
https://stackoverflow.com/questions/73156323/internal-error-eacces-permission-denied-symlink-lib-node-modules-corepack
/icons/hr.icon
yarn V2以降、npm経由で入れるようになった
$ npm install -g yarn
/icons/hr.icon
code:sh
# レポジトリをlinuxに信用させる
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
# yarnのrepositoryを追加する
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt update
nvmを使わないとき:
$ sudo apt install yarn
nvmを使うとき:
$ sudo apt install --no-install-recommends yarn
cf. インストール | Yarn
Ubuntuのとき
#2021-10-01 15:11:32
#2020-06-05