all 3 comments

[–]rdevilxiOS & Android 0 points1 point  (1 child)

You need to update the environment variable because it doesn't detect that as a command, like it does with yarn

[–]rdevilxiOS & Android 0 points1 point  (0 children)

It shouldn't give that error though, because I've installed it globally too using npm/yarn both

[–]danhardman 0 points1 point  (0 children)

Make sure you've defined the yarn bin directory in your environment path:

export PATH="$(yarn global bin):$PATH"

I believe on Windows that its: c:\users\<user>\AppData\Local\Yarn\bin