Hi
Unfortunately I've not got off to a good start. I've followed the instructions on page 4+ of the book very carefully but without success. I've tried these both on my main development machine and also in a clean VM.
Specifically, I followed the instructions under the section "Installing Yeoman" but I get a few warnings\errors:
Code:
├── UNMET PEER DEPENDENCY generator-karma@>=0.8.2
└── UNMET PEER DEPENDENCY yo@>=1.0.0
npm WARN EPEERINVALID [email protected] requires a peer of generator-karma@>=0.8.2 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of yo@>=1.0.0 but none was installed.
Next I attempt to run "yo angular StockDog", however the "yo" command cannot be found! It looks like there is a missing step somewhere.
I believe I'm probably meant to run "npm install -g yo"? Doing so seems to work and now the "yo" command works. However "yo angular StockDog" still fails with the following error:
Code:
Error angular StockDog
You don't seem to have a generator with the name karma:app installed.
Next I ran "npm install -g generator-karma" to install the thing it was complaining about. Then I ran "yo" and updated all packages.
Finally after doing so running "you angular StockDog" seems to work, although I do still see lots of errors and warnings, for example:
Code:
├── UNMET PEER DEPENDENCY jasmine-core@*
├── UNMET PEER DEPENDENCY karma@^0.13.0 || >= 0.14.0-rc.0
└── UNMET PEER DEPENDENCY phantomjs@>=1.9
npm WARN EPEERINVALID [email protected] requires a peer of karma@^0.13.0 || >= 0.14.0-rc.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of jasmine-core@* but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of karma@>=0.9 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of phantomjs@>=1.9 but none was installed.
Is this anything to worry about?
Overall it looks like either I'm missing something or the instructions in the book are quite incomplete. Also all the error and warnings are quite disconcerting (There are many other warnings too that I haven't mentioned, such as library versions being deprecated etc).
I've looked ahead to the chapter on Tools etc and it seems there are no additional instructions there either.
Thanks
Ben