javascript - 使用 Grunt 和 Node.js 构建 AngularJS UI-Grid 时遇到问题

标签 javascript angularjs node.js gruntjs angular-ui-grid

我是 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/

相关文章:

javascript - 如何使用 gulp.js 从内存中的字符串生成 SCSS 文件?

javascript - JavaScript 中不明确的数组赋值

javascript - 当扩展的内容脚本处于事件状态时设置图标

jquery - 具有高级自动完成功能的 Angular TextEditor

javascript - AngularJS:从 HttpResponse 读取数据和 header

javascript - 将文件中的字符串转换为列表

node.js - 使用 WebRTC.io 和 NodeJS 到达时连接到房间

javascript - 如何有多个输入文件?

javascript - 使用 ng-repeat 根据不同对象的 id 绑定(bind)一组对象的值

javascript - 使用 javascript 循环对象并将结果放入数组