Home > Web Front-end > JS Tutorial > body text

How to install a specific version of flow using brew

php中世界最好的语言
Release: 2018-05-29 10:20:40
Original
1605 people have browsed it

This time I will show you how to use brewInstallA specific version of flow, what are the precautions for using brew to install a specific version of flow, the following is a practical case, let’s take a look .

$ brew -v
Homebrew 1.2.0
$ flow version
Flow, a static type checker for JavaScript, version 0.45.0
$ flow
Launching Flow server for /Users/real/Desktop/reactPro/pro2
Wrong version of Flow. The config specifies version ^0.42.0 but this is version 0.45.0
Copy after login

You can also see the last place in my .flowconfig file:

[version]
^0.42.0
Copy after login

This means that the version of flow should be >=0.42.0 <0.43.0, so 0.45.0 is inappropriate. This requires downloading version 0.42.0.

Searched for some opinions on the Internet (brew installs a specific version):

brew install flow (the latest version is installed)

brew versions (obsolete)

brew tap homebrew/versions (obsolete)

Warning: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated.
Copy after login

npm install flow-bin@0.42.0 -g (It can be installed, but the actual effect is not seen)

When I installed flow, there was this prompt:

$ brew install flow
==> Downloading https://homebrew.bintray.com/bottles/flow-0.45.0.sierra.bottle.tar.gz
Already downloaded: /Users/real/Library/Caches/Homebrew/flow-0.45.0.sierra.bottle.tar.gz
==> Pouring flow-0.45.0.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
 /usr/local/etc/bash_completion.d
zsh completions have been installed to:
 /usr/local/share/zsh/site-functions
==> Summary
�� /usr/local/Cellar/flow/0.45.0: 8 files, 6.4MB</p>
<p style="text-align: left;">It downloaded It is version 0.45.0, and what I need is version 0.42.0, so I downloaded it manually. </p>
<pre class="brush:php;toolbar:false">https://homebrew.bintray.com/bottles/flow-0.42.0.sierra.bottle.tar.gz
Copy after login

Then put the decompressed file into

/usr/local/Cellar/flow/
Copy after login

so that version 0.42.0 is installed. Then just pass

$ brew switch flow 0.42.0
Copy after login

. . A bit sad. . Thumbs up, brother. .

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to use ES6 template string

How to use string template in Vue

The above is the detailed content of How to install a specific version of flow using brew. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template