我是 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
我该如何解决?
最佳答案
This thread说问题是你使用的是 git 协议(protocol)而不是 https。试试这个:
$ git config --global url."https://".insteadOf git://
您还可以在 stack overflow thread. 阅读更多相关信息
关于javascript - 使用 Grunt 和 Node.js 构建 AngularJS UI-Grid 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26509265/