Flow works best when installed per-project with explicit versioning rather than globally.
Luckily, if you’re already familiar with
yarn, this process should be pretty familiar!
devDependency on the flow-bin
yarn add --dev flow-bin // npm install --save-dev flow-bin
yarn run flow // npm run flow
Running the command
flow init will generate a
.flowconfig file within the directory that be modified as needed.