-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds PATH instructions for macOS. Fixes #9351 Fixes #10015 Fixes #10040 Fixes #10036 --------- Co-authored-by: John Ryan <ryjohn@google.com>
- Loading branch information
Showing
13 changed files
with
202 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/_includes/docs/install/reqs/flutter-sdk/flutter-doctor-precedence.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
When you run the current version of `flutter doctor`, | ||
it might list a different version of one of these packages. | ||
If it does, install the version it recommends. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{{site.alert.important}} | ||
When installing on an [Apple Silicon Mac][], | ||
install the Rosetta translation environment. | ||
Some components require the [Rosetta][need-rosetta]. | ||
Some Flutter components require the | ||
[Rosetta 2 translation process][need-rosetta] | ||
on Macs running [Apple silicon][]. | ||
To run all Flutter components on Apple silicon, | ||
install [Rosetta 2][rosetta]. | ||
|
||
```terminal | ||
sudo softwareupdate --install-rosetta --agree-to-license | ||
``` | ||
{{site.alert.end}} | ||
```terminal | ||
$ sudo softwareupdate --install-rosetta --agree-to-license | ||
``` | ||
|
||
[Apple Silicon Mac]: https://support.apple.com/en-us/HT211814 | ||
[Apple silicon]: https://support.apple.com/en-us/HT211814 | ||
[rosetta]: https://support.apple.com/en-us/HT211861 | ||
[need-rosetta]: {{site.repo.this}}/pull/7119#issuecomment-1124537969 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% assign terminal=include.terminal %} | ||
{% assign target = include.target %} | ||
{% assign dir = include.dir %} | ||
|
||
### Add Flutter to your `PATH` | ||
{:.no_toc} | ||
|
||
To run Flutter commands in {{terminal}}, | ||
add Flutter to the `PATH` environment variable. | ||
This guide presumes your [Mac runs the latest default shell][zsh-mac], `zsh`. | ||
Zsh uses the `.zshenv` file for [environment variables][envvar]. | ||
|
||
1. Launch your preferred text editor. | ||
|
||
1. If it exists, open the Zsh environmental variable file `~/.zshenv` | ||
in your text editor. If it doesn't, create `~/.zshenv`. | ||
|
||
1. Copy the following line and paste it at the end of your `~/.zshenv` file. | ||
|
||
```conf | ||
export PATH=$HOME/development/flutter/bin:$PATH | ||
``` | ||
|
||
1. Save your `~/.zshenv` file. | ||
|
||
1. To apply this change, restart all open terminal sessions. | ||
|
||
If you use another shell, | ||
check out [this tutorial on setting your PATH][other-path]. | ||
|
||
[zsh-mac]: https://support.apple.com/en-us/102360 | ||
[envvar]: https://zsh.sourceforge.io/Intro/intro_3.html | ||
[other-path]: https://www.cyberciti.biz/faq/unix-linux-adding-path/ |
Oops, something went wrong.