Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Professional AngularJS
|
BOOK: Professional AngularJS
This is the forum to discuss the Wrox book Professional AngularJS by Valeri Karpov, Diego Netto; ISBN: 978-1-118-83207-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional AngularJS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 3rd, 2016, 11:28 AM
Registered User
 
Join Date: Jan 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 4 - Installing Yeoman - Not Working

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Theme Not Working In Final Page Rajasekar1988 ASP.NET 4 General Discussion 3 June 12th, 2012 08:29 AM
Page break not working! dianehoffman BOOK: Joomla! Start to Finish: How to Plan, Execute, and Maintain Your Web Site 2 May 20th, 2010 10:23 AM
Page Break not working AccessDev Access 0 July 28th, 2006 04:14 AM
ASP not working after installing PHP taliesin Classic ASP Professional 1 July 4th, 2003 11:41 AM
ASP not working after installing PHP taliesin Classic ASP Basics 0 June 27th, 2003 12:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.