【问题标题】:Running Karma on windows "scripts/test.sh: line 9: testacular: command not found"在 Windows 上运行 Karma “scripts/test.sh: line 9: testacular: command not found”
【发布时间】:2013-05-16 14:44:57
【问题描述】:

我正在尝试在我的 Windows 7 64 位 PC 上执行 Angular 教程,当我尝试运行脚本来启动 Karma 时遇到了这个错误。这里是 test.sh:

#!/bin/bash

BASE_DIR=`dirname $0`

echo ""
echo "Starting Testacular Server (http://vojtajina.github.com/testacular)"
echo "-------------------------------------------------------------------"

testacular start $BASE_DIR/../config/testacular.conf.js $*

我跑:

sh scripts/test.sh

回声显示正常,然后出现错误:

scripts/test.sh: line 9: testacular: command not found

【问题讨论】:

  • Karma 以前称为 Testacular,所以也许更改 test.sh 来调用 karma?
  • 天啊,真不敢相信我没想到。现在工作正常,谢谢!
  • 酷我会添加一个答案,因为它有效。

标签: node.js angularjs karma-runner


【解决方案1】:

Karma 以前称为 Testacular,因此修改 test.sh 以调用 karma 而不是 testacular:

testacular start $BASE_DIR/../config/testacular.conf.js $*

改成这样:

karma start $BASE_DIR/../config/testacular.conf.js $*

【讨论】:

  • Angular 教程的源文件似乎有点过时了,感谢 Gloopy!
猜你喜欢
  • 2017-01-29
  • 2018-05-30
  • 1970-01-01
  • 1970-01-01
  • 2014-01-01
  • 2020-05-24
  • 2013-02-17
  • 1970-01-01
  • 2021-02-23
相关资源
最近更新 更多