Flow is not officially supported on Windows. So I’m trying to set it up on my machine.
Flow uses OCaml; it is easy to get OCaml on Windows with Cygwin. Even the Cygwin setup has option to select OCaml.
First git clone flow from their source: https://github.com/facebook/flow using
git clone https://github.com/facebook/flow.git
Failed with error: ‘i686-w64-mingw32-gcc’ is not recognized as an internal or external command,
operable program or batch file.
Let us try by installing it
apt-cyg install mingw64-i686-gcc-g++
Retried make and got error: fatal error: gelf.h: No such file or directory
Try installing libelf
apt-cyg install libelf-devel
no luck yet.
apt-cyg install ELFIO
Yet after not getting any success, I tried installing the sources for lib-elf as well.
Uninstall OCaml and try using Cygwin’s OCaml
looks better, but still getting err: can’t find sys/syscall.h
hack (part of hhvm/hphp) is system dependent. probably it’ll take more time getting it done.
Update: Right now there is an unanswered question on Quora about it; if you find a solution, please post.
4 thoughts on “(Failed attempt to) Set up Flow (Static typechecker for JS) on Windows 8.1”
It took 2 years but now you can just download and install…
That is cool! Thanks.
Yeah, you made a good attempt. Might even have worked if you had the new Bash shell in Windows 10 available to you back then.
There are 250 comments on Issue #6 and a lot of people tried all all sorts of things.
I had a short discussion going on the issue which is why I came across your page: