English 中文(简体)
• 如何在你的道路上将这一弱智博士“警告:`dart'寄给“aco?
原标题:How to fix this Flutter Doctor "Warning: `dart` on your path resolves to " macos?

在Dart安装后使用“Flutter 博士”指挥器,在MacOS Big Sur<>/strong>上安装了灯塔,然后获得这一警告。

Flutter (Channel stable, 3.7.0, on macOS 11.7.2 20G1020 darwin-x64, locale en-GB) ! Warning: dart on your path resolves to /usr/local/Cellar/dart/2.19.1/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/puneet/development/flutter. Consider adding /Users/puneet/development/flutter/bin to the front of your path.

各位能告诉我,如何解决这个问题?

我试图避免这一警告,并操作一个在冲碎框架上开发的roid室守则。

问题回答

我仅通过利用这一指挥把这支德特高克拖拉来化解这一警告:

brew uninstall dart

由于dart sdk已经安装了冲碎机,你无需安装。

SOLVED

当你向最新版本通报这一警告时,你将 in碎的医生产出:

https://i.stack.imille.com/bhfeg.peng” tra=“noreferer”

在检查你冲碎的双条道路之后,解决这一 just和开放的.子也一样:

“IMAGE

change your path into this:-

IMAGE OF PATH

and then run flutter doctor again... PROBLEM SOLVED ☺️

ERROR SOLVED

这里的解决办法:

export PATH=”/Users/my_user_name/development/flutter/bin:$PATH

</Users/my_user_name/development/flutter/bin>

flutter doctor

如果你下载冲破碎机,并单独安装dart,那就是一个简单的答案:

  1. 开放您的会场

  2. 接着,新闻界进入:

    brew uninstall dart
    
  3. 船员随后将停职。

  4. 之后,报界进入:

    flutter doctor -v
    
  5. 流散博士应报告

     No issues found!
    

Dart SDK被捆绑起来,因此没有必要单独安装Dart。

<代码>Flutter/code> 因此,如果你已经在贵处分别安装了<代码>Dart,则从您的系统中删除及其路径>。 页: 1

Check your environment variable,if dart path exist remove it. Because dart executable exist in flutter and dart-sdk also.Add only path flutter bin.It work fine for me.

Here is how I solve this problem My dart path on environmental variable was look like (Both user and system variable)

C:srcdart-sdkin Now I change it to C:srcdart-sdkindart.exe and the problem resolved.

这是因为案件敏感。 你可以检查一下。

which flutter

If result is like that /users/***/developments/flutter/bin/flutter"

出口途径

export PATH=/Users/***/developments/flutter/bin:$PATH

我遇到了同样的问题。

问题是,我确实认为,这是对案件敏感的。 我的茨欣奇的道路是低地走的,但我的Development夹是从首都D开始的。

我把我的双人名从<>发展>改为,一切工作都得当。

我希望这一帮助!

New name package.. https://formulae.brew.sh/formula/dart-sdk

brew install dart-sdk

简单! 删除C轮驱动力的dart sdk,以及从环境上可以生存的一条道路上去做!

之所以如此,是因为你可能使用像fvm这样的版本经理。 一、导 言 HOME是这一警告所显示的一种象征。

For Windows 10 My project was in

C:UsersOleksiiAndroidStudioProjectsFlutterProjectsmonitoringflutter enter image description here

我刚刚将“彩虹项目”移至冲破碎的倍数:

C:UsersOleksiiflutterFlutterProjectsmonitoring> enter image description here

Dart SDK被捆绑起来,因此没有必要单独安装Dart。

感谢@Lydia! 它与我的案件合作。





相关问题
2 mysql instances in MAC

i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql connectivity, i "somehow" ended up installing a seperate MySQL. now the seperate mysql installation is ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

Switching J2SE versions on Mac OS (SnowLeopard)

My current JDK on Mac OS (10.6) is set to 1.6 and I d like to switch to 1.5. A listing of /System/Library/Frameworks/JavaVM.framework/Versions/ shows: lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 ...

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

export to MP3 from quicktime API

A question for Apple,QT programmers. Would like to know if it s possible to export a Movie object to MP3 using the QuickTime API. Preferably the ConvertMovieToFile function. I ve looked at ...

热门标签