1
我一直想用這個角度軌發生器設置一個環境:https://github.com/sheniff/generator-angular-rails但它一直未能當我運行試圖建立一個約曼角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
咕嚕-CLI v0.1.13
咕嚕v0.4.5
涼亭1.4.1
因緣0.12.32
指南針1.0。 3(Polaris)
ruby 2.2.1p85
phantomjs 2.0.0(有些奇怪的是,當我運行「phantomjs --version」時,它返回2.0.0,但上面的錯誤信息說明了phantomJS 1.9.8。試圖找出爲什麼區別在那裏。
如果這件事真的很明顯,我很想念我的道歉,我已經搜遍了一個類似於這個問題的問題,一直無法找到它。謝謝!