jxson / front-matter

Extract YAML front matter from strings
MIT License
675 stars 76 forks source link

Please add Yarn support .. #66

Closed Ishaan28malik closed 4 years ago

Ishaan28malik commented 4 years ago

I tried yarn add front-matter --dev and it shows

[4/4] Building fresh packages...

warning "front-matter@3.2.1" has no binaries
Done in 3.57s.
tyankatsu0105 commented 4 years ago

@Ishaan28malik HelloπŸ‘‹ It seems like succeeds.

yarn add front-matter --dev                                                                                                                                                     557ms
yarn add v1.22.4
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
success Saved 5 new dependencies.
info Direct dependencies
└─ front-matter@3.2.1
info All dependencies
β”œβ”€ argparse@1.0.10
β”œβ”€ esprima@4.0.1
β”œβ”€ front-matter@3.2.1
β”œβ”€ js-yaml@3.13.1
└─ sprintf-js@1.0.3
✨  Done in 0.43s.
node -v
v12.16.2

yarn -v
1.22.4
Ishaan28malik commented 4 years ago

Okay let me check it then, I tried with

yarn global add front-matter --dev 

Does this work in your case?

tyankatsu0105 commented 4 years ago

Here you are.

yarn global add front-matter --dev
yarn global v1.22.4
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...

warning "front-matter@3.2.1" has no binaries
✨  Done in 0.57s.

You might want to print your environment. like yarn and node version. And I don't know why you want global install.

Ishaan28malik commented 4 years ago

Yeah, I want to use it for the whole project, and when I am installing it without global then ...

front-matter -v or -V

front-matter not found

The same is happening without global but at least the binaries are getting installed.

tyankatsu0105 commented 4 years ago

@Ishaan28malik Please paste these command's result:

node -v
yarn -v
Ishaan28malik commented 4 years ago

No this is not what I meant ....