Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: yarn: command not found even after installing it globally

Mac OS 10.13.6

How did I install yarn

npm install --global yarn

yarn installation path is /Users/useName/.config/yarn

Then ran below command

yarn create react-app app-name

This worked well, but when I'm trying to run yarn add package_name, it's throwing error

bash: yarn: command not found

The weird thing, after closing and opening terminal again under which I had globally ( ? ) installed yarn, the yarn command is not found.

like image 794
vikramvi Avatar asked Nov 20 '25 16:11

vikramvi


1 Answers

Just re- install using "brew install yarn" and that should solve it.

like image 138
Solomon Sunday Avatar answered Nov 22 '25 05:11

Solomon Sunday



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!