Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dart - How to check if Git is correctly installed?

Tags:

git

dart

So I'm using Tortoise Git, and I'm trying to install the json_object package from git. When running pub install I get this error:

Cannot install 'json_object' from Git (git://github.com/chrisbu/dartwatch-JsonObject.git). Please ensure Git is correctly installed.

How can I make sure Git is installed correctly? I'm using Windows 7 64 bits.

like image 807
Fernando Tiberti Avatar asked Dec 11 '25 01:12

Fernando Tiberti


1 Answers

This could be related to 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" at pub's sources (io.dart and git_source.dart) fixes pub for my environment.

like image 149
VonC Avatar answered Dec 12 '25 19:12

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!