'How to install fvm on mac, i 've try but get error?

I can't install fvm on mac, getting error like this, what is wrong, it's about brew or fvm?

Error pict



Solution 1:[1]

Brew is telling you that it can't find a formula for FVM.

Try this:

brew tap leoafarias/fvm

brew install fvm

Instructions here.

Solution 2:[2]

As in the official documentation of fvm:

1. Standalone (Recommended)
You can download the standalone packages from the GitHub repo here.

2. Homebrew
If you use the Homebrew package manager for Mac OS X, you can install FVM by running

- Install

brew tap leoafarias/fvm
brew install fvm

- Uninstall

brew uninstall fvm
brew untap leoafarias/fvm

3. Pub package

You are able to also install FVM as a pub package.

dart pub global activate fvm

However if you plan on using FVM to manage your global Flutter install we recommend installing as a standalone.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MySilmaril
Solution 2 Mohamed Kamel