LoginSignup
1
0

More than 5 years have passed since last update.

yarn global addが動作しない場合の対処

Posted at

本事象が発生した環境

  • macOS Sierra 10.12.3
  • nvmでnodejsを管理してい(る|た)
  • brewでyarnをinstall

yarn global binがおかしい

本来ならyarnが管理しているpathが表示されてほしいのだが、
なぜかnvmで管理しているpathが表示される

yarn global lsは正しい

binはおかしいくせにlsだとちゃんと管理されている

yarn global removeは動作しない

This module isn't specified in a manifestのようなメッセージが出る

対処

export PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin/"
上記を$HOME/.bash_profileなどに書いておく

参考というか本家のissue

1
0
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
1
0