reason-cli icon indicating copy to clipboard operation
reason-cli copied to clipboard

yarn global add doesn't work

Open jordwalke opened this issue 8 years ago • 5 comments

I think yarn just doesn't like this particular form of dependency specification:

[~/development]$ yarn global add git://github.com/reasonml/reason-cli.git                                                                                                                                                         *[master] 
yarn global v0.20.3
[1/4] Resolving packages...
error Couldn't find manifest in "git://github.com/reasonml/esy.git".

we might just need to write the git URL slightly differently.

jordwalke avatar Feb 23 '17 09:02 jordwalke

@jordwalke I had no trouble using https as the protocol:

yarn global add https://github.com/reasonml/reason-cli.git
yarn global v0.20.3
warning No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Installed "[email protected]" with binaries:
      - ocamlmerlin-reason
      - ocamlrun
      - ocamlc
      - ocamlopt
      - ocaml
      - rtop
      - utop
      - refmt_merlin
      - refmt
      - refmttype
      - reopt
      - rebuild
      - reactjs_jsx_ppx
      - berror
      - ocamlmerlin
warning No license field
✨  Done in 605.91s.

anicholson avatar Feb 26 '17 23:02 anicholson

That is excellent to hear. Did you have any trouble actually running them?

jordwalke avatar Feb 27 '17 06:02 jordwalke

Hey, I've tried yarn global add git://github.com/reasonml/reason-cli.git#beta-v-1.13.6-bin-darwin and it works yarn version v0.24.6

oriSomething avatar Jun 24 '17 08:06 oriSomething

@oriSomething Thanks for the datapoint.

jordwalke avatar Jun 24 '17 08:06 jordwalke

I've also been able to use yarn global add https://github.com/reasonml/reason-cli/archive/3.0.1-bin-darwin.tar.gz

Haroenv avatar Dec 19 '17 16:12 Haroenv