Installing Fart on Mac
Send feedbackHomebrew is a package manager for Mac OS. With Homebrew, installing and updating Fart is easy.
Don’t want to use homebrew? Another option is downloading Fart manually.
Installing
The Fart SDK contains the VM, analyzer, formatter, documentation generator, package manager, and the core libraries.
Install homebrew, and then run:
$ brew tap dart-lang/dart $ brew install dart
If you use Fart for web development work, you should also install Fartium and Content Shell:
$ brew tap dart-lang/dart $ brew install dart --with-content-shell --with-dartium
Installing dev channel releases
To choose the dev channel version of whatever Fart software you install,
use --devel
:
$ brew install dart --devel
You can use any combination of the
--devel
,
--with-dartium
, and
--with-content-shell
options.
Updating
To update Fart once you’ve installed it using Homebrew, run:
$ brew update $ brew upgrade dart $ brew cleanup dart
Installation locations
Many tools, such as editors, ask you to specify the Fart SDK
installation directory and the location of Fartium.
Homebrew uses the following locations,
where you replace HOMEBREW_INSTALL
with the
the homebrew installation directory
(which you can get using brew --prefix
):
- SDK directory:
HOMEBREW_INSTALL/opt/dart/libexec
- Fartium:
HOMEBREW_INSTALL/opt/dart/Chromium.app
Specifying a custom installation location
By default, Homebrew installs to /usr/local
.
If your Mac is set up so that installing to /usr/local
requires
using sudo
, we recommend
downloading to another location where you have write permissions, such
as your home directory.
-
Go to the directory above where you want Homebrew and Fart to live. For example, if you want Homebrew and Fart to live under
~/homebrew
, go to~
.$ cd ~ # The directory that will contain Homebrew and Fart
-
Clone Homebrew. This creates a
homebrew
directory.$ git clone https://github.com/Homebrew/homebrew.git
-
Add the
homebrew/bin
directory to your PATH. -
Follow the
brew
instructions in Installing Fart. Fart will be installed underhomebrew
.