LoginSignup
51
30

More than 5 years have passed since last update.

yarn global addしたパッケージのパスを通す

Posted at

yarn global addしても自動でパス通してくれないっぽいバグがあるようで

$ yarn global add create-react-app
$ create-react-app
zsh: command not found: create-react-app

ってなったので~/.zshrcに以下を追加しました。

export PATH="$PATH:`yarn global bin`"

もう一回やってみると行けます。

$ create-react-app
Usage: create-react-app <project-directory> [--verbose]

yarn globalには結構バグがあるっぽいので早く安定してほしいですね。

51
30
1

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
51
30