一开始,一切都很好。当我下载Dart SDK时,我遇到了这个问题:
Flutter (Channel stable, 3.7.3, on macOS 13.2.1 22D68 darwin-arm64
(Rosetta), locale en-SA)
• Flutter version 3.7.3 on channel stable at /Users/waleed/flutter
! Warning: `dart` on your path resolves to
/usr/local/Cellar/dart/2.19.2/libexec/bin/dart, which is not inside your
current Flutter SDK checkout at /Users/waleed/flutter. Consider adding
/Users/waleed/flutter/bin to the front of your path.
我改变了路径,但似乎没有解决问题。
1条答案
按热度按时间y1aodyip1#
我猜是Dart的安装路径有问题。试着在系统的PATH环境变量前面添加Flutter SDK的bin目录的正确路径。
将以下行添加到文件末尾,将路径替换为Flutter SDK目录的实际路径:
在你的
.bash_profile