使用Grunt和Node.js构buildAngularJS UI-Grid时遇到困难

我是Node.js,Github,Grunt和ui-grid项目中使用的其他工具的新手。 我试图按照https://github.com/angular-ui/ng-grid/blob/master/FIRST_TIMER.md中的说明开始操作。

它进行得很顺利,但是当我运行这个咕噜的任务时,我得到一个错误:

PhantomJS 1.9.7 (Windows 7) ERROR ReferenceError: Can't find variable: jQuery at c:/Users/russell/ng-grid/lib/test/jquery.simulate.js:328 Warning: Task "karma:angular-1.2.14" failed. Use --force to continue. Aborted due to warnings. 

我试图执行下一个命令grunt install并得到以下错误:

 >> bower csv-js#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/gkindel/CSV-JS.git", exit code of #128 Warning: Done, with errors. Use --force to continue. Aborted due to warnings 

我如何解决这个问题?

这个线程说,问题是你使用的是git协议而不是https。 尝试这个:

 $ git config --global url."https://".insteadOf git:// 

您也可以在这个堆栈溢出线程中阅读更多关于它的信息。