LoginSignup
0
1

More than 3 years have passed since last update.

yarnを最新化する

Last updated at Posted at 2021-01-16

はじめに

yarnを最新化する時に手間取ったので、備忘録としてメモを残す。

結論としては、yarnのアンインストール->インストールだけでは不十分で、local/bin/配下のyarn,yarnpkgを削除する必要がある。

開発環境

  • macOS Big Sur(バージョン 11.1)

最新化する手順

  1. /usr/local/bin配下のyarn,yarnpkgを削除する

  2. /usr/local/lib/node_modules/yarn/bin配下のyarn,yarnpkgを最新化する

  3. $ npm uninstall --global yarn
    $ npm install --global yarn
    

あと書き

npm uninstallは/usr/local/lib/node_modules/yarn/bin配下のファイルを削除するのであって、/usr/local/binを更新してくれるわけではなさそう。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1