flowtype Getting started with flowtype Installation


Flow works best when installed per-project with explicit versioning rather than globally.

Luckily, if you’re already familiar with npm or yarn, this process should be pretty familiar!

Add a devDependency on the flow-bin npm package:

yarn add --dev flow-bin
npm install --save-dev flow-bin

Run Flow:

yarn run flow
npm run flow

Running the command flow init will generate a .flowconfig file within the directory that be modified as needed.