【问题标题】:Trouble building AngularJS UI-Grid with Grunt and Node.js使用 Grunt 和 Node.js 构建 AngularJS UI-Grid 时遇到问题
【发布时间】:2014-12-18 00:14:19
【问题描述】:

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

我该如何解决这个问题?

【问题讨论】:

  • 我尝试执行下一个命令(grunt install)并得到以下错误:>> bower csv-js#* ECMDERR Failed to execute "git ls-remote --tags --heads git: //github.com/gkindel/CSV-JS.git",退出代码 #128 警告:完成,有错误。使用 --force 继续。由于警告而中止。

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


【解决方案1】:

This thread 表示问题在于您使用的是 git 协议而不是 https。试试这个:

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

您还可以通过stack overflow thread.了解更多信息

【讨论】:

  • 谢谢。这解决了它。
  • 解决了这个问题,现在当我运行端到端测试时,我得到 $ grunt test:e2e Running "connect:testserver" (connect) 任务在 127.0.0.1:9999 上开始连接 Web 服务器。运行“protractor:singlerun”(量角器)任务启动 selenium 独立服务器... events.js:72 throw er; // 未处理的“错误”事件 ^ 错误:在 Process.ChildProcess._handle.onexit (child_process.js:792:34) 处的 errnoException (child_process.js:1001:11) 处产生 ENOENT >> 致命错误:量角器退出并显示代码: 8
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-08-02
  • 2021-02-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-06
相关资源
最近更新 更多