所以我使用的是Tortoise Git,我試圖從git安裝json_object包。在運行pub安裝時出現此錯誤:Dart - 如何檢查Git是否安裝正確?
Cannot install 'json_object' from Git (git://github.com/chrisbu/dartwatch-JsonObject.git). Please ensure Git is correctly installed.
如何確保Git安裝正確?我正在使用Windows 7 64位。
所以我使用的是Tortoise Git,我試圖從git安裝json_object包。在運行pub安裝時出現此錯誤:Dart - 如何檢查Git是否安裝正確?
Cannot install 'json_object' from Git (git://github.com/chrisbu/dartwatch-JsonObject.git). Please ensure Git is correctly installed.
如何確保Git安裝正確?我正在使用Windows 7 64位。
這可能與issue 4947
Run pub from Windows shell with git installed and available in
PATH
:
D:\Tools\dart\dart-sdk\bin\pub install
Cannot install 'dartlib' from Git (git://github.com/kevmoo/dartlib.git).
Please ensure Git is correctly installed.
git --version
git version 1.7.7.1.msysgit.0
Seems, that this issue related to Issue 1705 as git is available as
git.cmd
.Replacing "
git
" to "git.cmd
" atpub
's sources (io.dart
andgit_source.dart
) fixespub
for my environment.
你有沒有在您的環境路徑'bin'文件夾? 'bin'文件夾位於Git安裝目錄中。如果你需要幫助,你可以谷歌的「如何修改環境路徑」。 –