簡體   English   中英

在Windows上運行業力“ scripts / test.sh:第9行:testacular:未找到命令”

[英]Running Karma on windows “scripts/test.sh: line 9: testacular: command not found”

我正在嘗試在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

因果報應以前稱為Testacular,因此修改test.sh以將因果報應而不是testacular:

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

更改為此:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM