Change PATH configuration line on 'macOS install' page #9351
Labels
a.get-started
Relates to the Getting Started section of docs.flutter.dev
devos.macOS
Relates to developing apps on macOS platform
e1-hours
Effort: < 8 hrs
from.page-issue
Reported in a reader-filed concern
p2-medium
Necessary but not urgent concern. Resolve when possible.
Page URL
https://docs.flutter.dev/get-started/install/macos/
Page source
https://github.com/flutter/website/tree/main/src/get-started/install/macos.md
Describe the problem
The use of pwd in the PATH configuration line (export PATH="$PATH:pwd/flutter/bin") is incorrect and unnecessary. The correct way to add a directory to the PATH is to specify the absolute path to that directory directly. The pwd command, which stands for "print working directory," is used to display the current directory, but it's not needed in the PATH configuration.
Expected fix
Rename to: export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin" as it is under "Update your path" also step 3, using which did not bring any confusion
Additional context
Step: "3. Add the flutter tool to your path:" is under section Get the Flutter SDK
The text was updated successfully, but these errors were encountered: