【发布时间】:2015-05-20 06:17:25
【问题描述】:
我一直在尝试使用这个 Angular Rails 生成器设置环境: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。所以我试图弄清楚为什么会有区别。
如果真的很明显我错过了道歉,我已经搜索了一个与此类似的问题但找不到它。谢谢!
【问题讨论】:
标签: node.js gruntjs command karma-runner yeoman