Having attended a presentation on Yeoman at the FoWA conference in October, I recently decided to give it a go with an AngularJS application. I followed the Getting Started With Yeoman guide to install Yeoman and the angular generator (resulting in firstname.lastname@example.org and email@example.com) and then generate my application.
I hit problems straight off when I tried to run the tests using
$ grunt test: instead of it just working (as one might reasonably expect from something scaffolded), I got errors
Warning: No provider for "framework:jasmine"! and, when I fixed that,
Can not load "Chrome", it is not registered!. Unfortunately not all the necessary dependencies had been added. The solution was either to add
karma-chrome-launcher dependencies manually, as suggested here (but being careful to perform the steps in the order in the text section of the answer, NOT the order of the code examples) or to generate a new config using
$ karma init.
Later that week, working on a Windows 7 64-bit machine rather than 32-bit, I found that
generator-angular didn’t even complete, giving me the error
building is not supported on win32. A suggestion on GitHub by meandnotyou seemed to work: track down the
AppData/Roaming/npm/node_modules/generator-angular/templates/common/_package.json file and change the
grunt-contrib-imagemin dependency from
"0.2.0" before trying to run the generator.