問題描述:
我在安裝getx腳手架
- 執行完
flutter pub global activate get_cli
- 再将提示給的環境變量加到path裡
系統提示:
Warning: Pub installs executables into F:\flutter_windows\flutter_windows_3.3.0-
stable\flutter\.pub-cache\bin, which is not on your path.
在加完環境變量後 直接在終端執行
get
指令 或者
getx
指令來測試安裝完成與否,
出現如圖的bug
解決方案:
1 在配置一個 DartSdk的環境變量
F:\flutter_windows\flutter_windows_3.0.4\flutter\bin\cache\dart-sdk\bin
2 執行
dart pub global activate get_cli
成了的話 回報是
3 在進行get 測試