试图建立一个Yeoman Angular-Rails环境

时间:2015-05-20 06:17:25

标签: node.js gruntjs command karma-runner yeoman

我一直在尝试使用这个角度轨道生成器来设置环境:https://github.com/sheniff/generator-angular-rails但是当我运行时它会一直失败

Grunt test

它说我的业力单位失败了。

我发布下面的日志

% grunt test
Running "clean:server" (clean) task
Cleaning ".tmp"...OK

Running "coffee:dist" (coffee) task

Running "coffee:test" (coffee) task

Running "compass:dist" (compass) task
directory .tmp/styles
WARNING: 'glyphicons-halflings.png' was not found (or cannot be read) in /Users//Desktop/ang-rails/app/images
WARNING: 'glyphicons-halflings-white.png' was not found (or cannot be read) in /Users/Desktop/ang-rails/app/images
    write .tmp/styles/main.css

Running "compass:server" (compass) task

Running "connect:test" (connect) task
Started connect web server on localhost:9000.

Running "karma:unit" (karma) task
INFO [karma]: Karma v0.12.32 server started at http://localhost:8080/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket 97z8INcxrnCo6SHwAAAA with id 66703306
PhantomJS 1.9.8 (Mac OS X): Executed 0 of 0 ERROR (0.001 secs / 0 secs)
Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.

我真的不这么认为,因为我的css失败了。当我用sudo运行它时,我得到了

Warning: Task "compass:dist" failed. Use --force to continue.

npm 2.9.1
grunt-cli v0.1.13
咕噜v0.4.5
凉亭1.4.1
业力0.12.32
指南针1.0.3(北极星)
红宝石2.2.1p85
phantomjs 2.0.0(有点奇怪,当我运行" phantomjs --version"它返回2.0.0但上面的错误信息表示phantomJS 1.9.8。所以我想弄清楚为何有区别。

如果有一些非常明显的事情我很遗憾道歉,我已经搜到了一个与此类似的问题并且无法找到它。谢谢!

1 个答案:

答案 0 :(得分:0)

我发现了什么问题。在gruntfile.js中,localhost设置为9000而不是8080。