Flow: How correctly update flow?

Created on 1 Feb 2017  路  2Comments  路  Source: facebook/flow

Hello,

updated flow-bin with yarn global add flow-bin@latest. yarn global ls shows "[email protected]". flow version shows Flow, a static type checker for JavaScript, version 0.37.4. How update flow to latest version?

OS: Linux Ubuntu 16.04
Yarn: latest

P.S. I also did reboot several times...

Thanks for any help!

Most helpful comment

I think it is better to keep flow-bin as dev dependency in your project.

All 2 comments

Fixed.

  1. Check where is flow - whereis flow
  2. Remove it - sudo rm -rf /usr/bin/flow
  3. Add Flow - yarn global add flow-bin@latest

I don't remember if I installed Flow with NPM or no, even after deleting whole Node.js and NPM and reinstalling, it was always 0.37.4 version, but after that fix everything seems fine.

I think it is better to keep flow-bin as dev dependency in your project.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glenjamin picture glenjamin  路  3Comments

damncabbage picture damncabbage  路  3Comments

jamiebuilds picture jamiebuilds  路  3Comments

mmollaverdi picture mmollaverdi  路  3Comments

ctrlplusb picture ctrlplusb  路  3Comments