yeoman 官方step by step 遇到的狀況


狀況一:
grunt testWarning: Task "karma" not found. Use --force to continue.

解決方法:
npm install grunt-karma --save-dev

狀況二:
Running "karma:unit" (karma) taskWARN [plugin]: Cannot find plugin "karma-phantomjs-launcher".  Did you forget to install it ?  npm install karma-phantomjs-launcher --save-devINFO [karma]: Karma v0.12.24 server started at http://localhost:8080/WARN [launcher]: Can not load "PhantomJS", it is not registered!  Perhaps you are missing some plugin?
解決方法: 
npm install karma-jasmine --save-dev
npm install karma-phantomjs-launcher --save-dev
狀況三:
Running "wiredep:app" (wiredep) taskWarning: ENOENT, no such file or directory '/Users/jinwei/git/test1/app/bower.json' Use --force to continue.
 解決方法: 
Nice after quite some searching on google joshs solution fixed my problem. I just removed <%= yeoman.app %>wiredep: {        options:  { */code was here */ }}

留言

此網誌的熱門文章

nginx 上安裝 TWCA 憑證