Hi I'm trying to go through the AngularJS original tutorial and in step 2 where I'm supposed to run ./scripts/test.sh, I get an error saying
嗨,我正在尝试浏览AngularJS原始教程,在第2步我应该运行./scripts/test.sh,我收到错误说
[ERROR] config - Config file does not exist!
I've checked /config/karma.conf.js and the file indeed does exist.
我检查了/config/karma.conf.js,文件确实存在。
I'm running the latest version of node, npm, and karma.
我正在运行最新版本的node,npm和karma。
I thought re-installing them would fix the issue (as mentioned by a member of the AngularJS team on a Google forum post I found).
我认为重新安装它们可以解决问题(正如AngularJS团队成员在我发现的Google论坛帖子中提到的那样)。
I still get the error however. Anyone have any suggestions?
但我仍然得到错误。有人有什么建议吗?
Edit: I tried running /config/karma.conf.js and it gave an error saying "JASMINE is undefined," even though Jasmine is installed. Do I have to set a path or something? I have jasmine installed globally.
编辑:我尝试运行/config/karma.conf.js并且它发出错误,说“JASMINE未定义”,即使安装了Jasmine也是如此。我必须设置路径或什么?我在全球安装了茉莉花。
3 个解决方案
#1
3
You might need to install Karma
您可能需要安装Karma
steps:
脚步:
- npm install generator-karma
- npm install generator-karma
- yo karma
- 哟业力
#2
1
If you are on windows try to run ./scripts/test.bat.
如果您在Windows上尝试运行./scripts/test.bat。
#3
1
On Mac OS Mavericks.
在Mac OS Mavericks上。
1 - Install Karma
1 - 安装Karma
npm install -g generator-karma
2 - run yo karma
2 - 跑你的业力
yo karma
If node.js and yo is working this will be enough.
如果node.js和yo正在运行,这就足够了。
#1
3
You might need to install Karma
您可能需要安装Karma
steps:
脚步:
- npm install generator-karma
- npm install generator-karma
- yo karma
- 哟业力
#2
1
If you are on windows try to run ./scripts/test.bat.
如果您在Windows上尝试运行./scripts/test.bat。
#3
1
On Mac OS Mavericks.
在Mac OS Mavericks上。
1 - Install Karma
1 - 安装Karma
npm install -g generator-karma
2 - run yo karma
2 - 跑你的业力
yo karma
If node.js and yo is working this will be enough.
如果node.js和yo正在运行,这就足够了。