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?
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
Most helpful comment
@Hayko1994 @gopaldevra
The same error occurred to my project, but I found a solution for it.
Try the code below. Cheers.