我想在coderunner应用程序MacOS中添加新语言。就像DartPad一样。我安装了颤振sdk。但是,在选择了首选项/语言/添加新语言(+符号)添加的dart语言之后,当我试图编译代码时,我收到了这个错误消息:
/bin/sh: dart: command not found发布于 2021-05-30 18:43:05
CodeRunner/Preferences/Languages。+按钮添加另一种语言。
Dart”。dart $filename。.dart。Dart。

- brew tap dart-lang/dart
- brew install dart如果遇到任何错误,请在执行上述命令之前尝试以下操作:
export ALL_PROXY=$http_proxy:port如果您有任何错误,如:Error: Your Command Line Tools are too outdated.
然后尝试如下:从中的Software中更新它们,或者运行:
softwareupdate --all --install --force如果没有显示任何更新,请运行:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
成功的Dart设置:)
https://stackoverflow.com/questions/67764663
复制相似问题