51
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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に以下を追加しました。

.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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?