[英]Running Karma on windows “scripts/test.sh: line 9: testacular: command not found”
I'm trying to do the Angular tutorial on my Windows 7 64-bit PC and I came upon this error when I was trying to run the script to start Karma. 我正在尝试在Windows 7 64位PC上进行Angular教程,并且在尝试运行脚本以启动Karma时遇到了此错误。 Here's test.sh: 这是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 $*
I run: 我跑:
sh scripts/test.sh
The echos show up fine, and then I get the error: 回声很好显示,然后出现错误:
scripts/test.sh: line 9: testacular: command not found
Karma was formerly known as Testacular so modify test.sh
to call karma instead of testacular: 因果报应以前称为Testacular,因此修改test.sh
以将因果报应而不是testacular:
testacular start $BASE_DIR/../config/testacular.conf.js $*
change to this: 更改为此:
karma start $BASE_DIR/../config/testacular.conf.js $*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.