1

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

它进展顺利,但是当我运行 grunt 任务时,出现错误:

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

我该如何解决这个问题?

4

1 回答 1

2

该线程说问题在于您使用的是 git 协议而不是 https。尝试这个:

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

您还可以在此堆栈溢出线程中阅读有关它的更多信息。

于 2014-10-22T16:23:55.740 回答