【问题标题】:Running grunt "concurrent:test" Aborted due to warnings运行 grunt "concurrent:test" 由于警告而中止
【发布时间】:2014-04-02 14:17:36
【问题描述】:

我正在使用 Yeoman 角度生成器,当我运行此代码时,我会发出咕噜声并发出警告。我在 debian wheezy 中运行,并在运行 grunt 之前运行了这些命令:

sudo apt-get install ruby           &&
sudo gem install sass compass       &&
npm install                         &&
sudo npm install -g grunt-cli       &&
sudo npm install -g bower           &&

gruntfile.js:

 grunt.registerTask('test', [
    'clean:server',
    'concurrent:test',
    'autoprefixer',
    'connect:test',
    'karma'
  ]);

 test: {
        options: {
          port: 9001,
          base: [
            '.tmp',
            'test',
            '<%= yeoman.app %>'
          ]
        }
      },

警告:

Running "concurrent:test" (concurrent) task
    Warning:  Use --force to continue.

        Aborted due to warnings.


Execution Time (2014-04-02 13:58:03 UTC)
concurrent:test  1.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 99%
Total 1.1s
Process finished with exit code 6

【问题讨论】:

  • 我有这个错误是因为我写了一些古怪的 scss 语法

标签: angularjs debian gruntjs yeoman grunt-concurrent


【解决方案1】:

Grunt 退出代码 6 没有什么帮助,但它试图告诉您的真正要点是您的测试中有警告(阅读:问题),您应该查看它们。我还建议在您的 IDE 中打开 JSHint 或 JSLint,看看它会产生什么效果。在全新安装上运行测试应该开箱即用,如果它们失败通常是配置错误的标志,所以也要检查一下。最后,您可以尝试重新安装 Yeoman 并确保每个模块都能顺利安装。

【讨论】:

【解决方案2】:

我也刚刚经历过。

读完这个帖子后,我查看了我的 grunt 文件,发现 concurrent:test 正在运行 compass。

我运行了“grunt compass”并看到了更好的错误消息。

【讨论】:

  • 这对我有帮助-谢谢发帖。我将一些无效的 less 代码粘贴到我的 scss 文件中,运行 grunt compass 允许我找到并删除它。
  • 这对我有帮助。谢谢。
猜你喜欢
  • 2017-12-10
  • 2014-06-18
  • 1970-01-01
  • 2017-07-26
  • 2016-01-10
  • 1970-01-01
  • 2015-10-05
  • 2016-11-07
  • 2014-08-14
相关资源
最近更新 更多