Where does Yarn add global binaries on Windows?

I am on Windows 7 and I tried installing typescript using yarn :

 yarn global add typescript success Installed typescript@2.0.6 with binaries: - tsc - tsserver Done in 11.59s. 

After a successful installation, I type tsc at the command prompt, only to find that the command is unavailable.

 yarn tsc yarn tsc v0.16.1 error Command "tsc" not found. 

Get configuration:

 yarn config get prefix C:\Program Files (x86)\Nodist\bin 

I checked this way: there is no tsc or tsserver exectuables there. Where is it?

+5
source share
1 answer

Now works now :

 mkdir ~/yarn-global yarn config set prefix ~/yarn-global 

Check it out with

 yarn config get prefix 

Add ~/yarn-global to PATH env var.

0
source

Source: https://habr.com/ru/post/1258808/


All Articles