reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
290 stars 23 forks source link

Unable to install reason-cli on Arch Linux #5

Closed glennsl closed 7 years ago

glennsl commented 7 years ago

npm install -g git://github.com/reasonml/reason-cli.git results in this error:

error An unexpected error occurred: "Command failed: tar -xzf /home/glennsl/.cache/yarn/npm-@opam-alpha/react-1.2.0-f071a1308b6cad131c55cda8677823c3/.yarn-tarball.tgz --strip-components 1 -C /home/glennsl/.cache/yarn/npm-@opam-alpha/react-1.2.0-f071a1308b6cad131c55cda8677823c3\n\ngzip: stdin: not in gzip format\ntar: Child returned status 1\ntar: Error is not recoverable: exiting now\n".

Seems to be an issue with packages tared up on macs being incompatible with GNU tar.

> uname -a
Linux <redacted> 4.9.11-1-ARCH #1 SMP PREEMPT Sun Feb 19 13:45:52 UTC 2017 x86_64 GNU/Linux

> tar --version
tar (GNU tar) 1.29
glennsl commented 7 years ago

cc @kittens

glennsl commented 7 years ago

Fixed by https://github.com/reasonml/esy/pull/4 and https://github.com/reasonml/esy/commit/df72f3ee85dd144f66fc379dfacd49497c3d9f3c

jordwalke commented 7 years ago

Thanks for helping us debug!