[英]Just cloned the flutter repo, is it installing the correct dart sdk?
我剛剛在我的主目錄中克隆了 flutter 存儲庫,並將$HOME/flutter/bin
添加到我的PATH
中。
當我運行flutter --help
時,我收到以下錯誤:
$ flutter --help
Building flutter tool...
/home/noib3/flutter/bin/internal/shared.sh: line 24: /home/noib3/flutter/bin/cache/dart-sdk/bin/dart: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
^C
報告的錯誤是~/flutter/bin/cache/dart-sdk/bin/dart
不存在,這是不正確的,dart sdk 在那里。
然后我嘗試手動執行~/flutter/bin/internal/shared.sh
中的第 24 行:
$ ~/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub upgrade --verbosity=normal --no-precompile
Failed to execute process '/home/noib3/flutter/bin/cache/dart-sdk/bin/dart'. Reason:
The file '/home/noib3/flutter/bin/cache/dart-sdk/bin/dart' does not exist or could not be executed.
排除了does not exist
選項后,我留下了could not be executed
。 我不確定這里出了什么問題。 是否為我的操作系統安裝了正確的深色 sdk? 我正在使用 Linux,特別是 NixOS。
有什么幫助嗎?
Go 在flutter/bin文件夾中並刪除緩存文件夾。
如果這不起作用,我建議將其刪除並重新下載。 也許在將其添加到路徑后重新啟動計算機。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.