Open xgqfrms opened 5 years ago
Control Panel\System and Security\System
H:\Program Files\Dart-SDK\dart-sdk\bin
使用工具自动安装 Dart SDK 失败时,还可以手动安装。
手动添加 env
# windows & user env
PUB_HOSTED_URL
https://pub.flutter-io.cn
# windows & system env & DART_SDK
DART_SDK
# not work
H:\Program Files\Dart-SDK\dart-sdk
## OK
H:\Program Files\Dart-SDK\dart-sdk\bin
# windows & system env & JDK (Open JDK)
JAVA_HOME
H:\JDK-12
# windows & system env & PATH
H:\Program Files\Dart-SDK\dart-sdk\bin
%JAVA_HOME%\bin
$ dart app.dart
# Hello World!
# Here’s an example of running a Dart file on the command line:
$ dart --enable-asserts app.dart
https://www.dart-china.org/t/topic/480#heading--manual-install
# windows & system env & DART_SDK
DART_SDK
# not work
H:\Program Files\Dart-SDK\dart-sdk
## OK
H:\Program Files\Dart-SDK\dart-sdk\bin
After, set env it still not work, what's wrong with this?
dart2aot & can not run
AOT
H:\Program Files\Dart-SDK\dart-sdk\bin\dart2aot main.dart main.dart.aot
Maybe it's VS Code terminal bug