flow init command not found after installing flow on my project

Created on 13 Jul 2017  路  7Comments  路  Source: facebook/flow

I used npm for installing while the second command node_modules/.bin/flow
shows not found and after that flow init not found as well. In the package.json of my project I've found flow bin. What can cause this problem?

question

Most helpful comment

@Hayko1994 @gopaldevra
The same error occurred to my project, but I found a solution for it.
Try the code below. Cheers.

$ yarn add --dev flow-bin
$ node_modules/.bin/flow init
$ yarn run flow

All 7 comments

Getting the same error why? please let me know.

@Hayko1994 @gopaldevra
The same error occurred to my project, but I found a solution for it.
Try the code below. Cheers.

$ yarn add --dev flow-bin
$ node_modules/.bin/flow init
$ yarn run flow

or with npm make sure you npm run flow and have the flow added to your scripts in package.json

I was getting this error in the flow window despite having flow working via the terminal...

Error:Timeout on starting language service process

I downloaded the most recent version of phpStorm and the problem resolved itself.

Or just add flow-bin to global:

$ yarn global add flow-bin
$ flow init

Or just add flow-bin to global:

$ yarn global add flow-bin
$ flow init

@freedom9x - Realize this is a bit dated, but for google sake adding what I found after looking through this thread.

From: https://flow.org/en/docs/install/
"Flow works best when installed per-project with explicit versioning rather than globally."
"Note: you may need to runyarn run flow init before executingyarn run flow."

If it is installed in the project directory I had to use the command with the path:
node_modules/.bin/flow -help

or

node_modules/.bin/flow -help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

damncabbage picture damncabbage  路  3Comments

ctrlplusb picture ctrlplusb  路  3Comments

marcelbeumer picture marcelbeumer  路  3Comments

funtaps picture funtaps  路  3Comments

ghost picture ghost  路  3Comments