1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Find Where Yarn Is Installing Binaries as a javascript til

This commit is contained in:
jbranchaud
2019-11-25 16:45:45 -06:00
parent 947e936cbf
commit 0200c64804
2 changed files with 25 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
_875 TILs and counting..._
_876 TILs and counting..._
---
@@ -294,6 +294,7 @@ _875 TILs and counting..._
- [Easy Date Comparison With DayJS](javascript/easy-date-comparison-with-dayjs.md)
- [Expand Emojis With The Spread Operator](javascript/expand-emojis-with-the-spread-operator.md)
- [Fill An Input With A Ton Of Text](javascript/fill-an-input-with-a-ton-of-text.md)
- [Find Where Yarn Is Installing Binaries](javascript/find-where-yarn-is-installing-binaries.md)
- [for...in Iterates Over Object Properties](javascript/for-in-iterates-over-object-properties.md)
- [Freeze An Object, Sorta](javascript/freeze-an-object-sorta.md)
- [Generate Random Integers](javascript/generate-random-integers.md)

View File

@@ -0,0 +1,23 @@
# Find Where Yarn Is Installing Binaries
When you run a command like:
```bash
$ yarn global add create-react-app
```
[Yarn](https://yarnpkg.com/lang/en/) is going to install any needed
dependencies including any binaries. So, where is Yarn putting these binaries?
Let's ask:
```bash
$ yarn global bin
/Users/jbranchaud/.asdf/installs/nodejs/10.15.3/.npm/bin
```
This is where it is located on my machine. You'll want to run it on your own
machine because the exact location will depend on the specifics of your
installation.
See [the docs](https://yarnpkg.com/lang/en/docs/cli/global/) for more details.