The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

burton (31) [Avatar] Offline
#1
In the text on page 52 it indicates 'npm start' will briefly show 'Loading . . . ' then show 'Hello Anular 2!'. Mine just hangs with the output window showing

<path>\angular-seed>npm start

> angular-seed@ start <path>\chapter2\angular-seed
> live-server

Serving "<path>\chapter2\angular-seed" at http://127.0.0.1:8080
GET /node_modules/typescript/lib/typescript.js 404 7.160 ms - 54
GET /node_modules/core-js/client/shim.min.js 404 1.077 ms - 52
GET /node_modules/zone.js/dist/zone.js 404 0.686 ms - 46
GET /node_modules/systemjs/dist/system.src.js 404 1.225 ms - 53

The npm install failed with the tail of the log file looking like:

20455 info prepublish angular-seed@
20456 verbose validateInstall loading C:\Users\burton\Projects\AngularWithTypeScript\angular2typescript\chapter2\angular-seed\package.json for validation
20457 verbose stack Error: The package @angular/common@2.0.0 does not satisfy its siblings' peerDependencies requirements!
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\install.js:125:32
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\install.js:268:7
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:142:5
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:263:14
20457 verbose stack at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:263:14
20457 verbose stack at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:263:14
20457 verbose stack at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
20457 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:263:14
20458 verbose cwd C:\Users\burton\Projects\AngularWithTypeScript\angular2typescript\chapter2\angular-seed
20459 error Windows_NT 10.0.10586
20460 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
20461 error node v4.4.7
20462 error npm v2.15.8
20463 error code EPEERINVALID
20464 error peerinvalid The package @angular/common@2.0.0 does not satisfy its siblings' peerDependencies requirements!
20464 error peerinvalid Peer @angular/forms@2.0.0 wants @angular/common@^2.0.0
20464 error peerinvalid Peer @angular/platform-browser@2.0.0 wants @angular/common@^2.0.0
20464 error peerinvalid Peer @angular/platform-browser-dynamic@2.0.0 wants @angular/common@^2.0.0
20464 error peerinvalid Peer @angular/router@3.0.1 wants @angular/common@2.0.1
20465 verbose exit [ 1, true ]
Anton Moiseev (27) [Avatar] Offline
#2
Please run npm install it the root directory of angular-seed before starting the app.
burton (31) [Avatar] Offline
#3
I get this error message on npm install:

19390 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-installed\read-installed.js:263:14
19391 verbose cwd C:\Users\burton\Projects\AngularWithTypeScript\angular2typescript-master\chapter2\angular-seed
19392 error Windows_NT 10.0.10586
19393 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
19394 error node v4.4.7
19395 error npm v2.15.8
19396 error code EPEERINVALID
19397 error peerinvalid The package @angular/common@2.0.0 does not satisfy its siblings' peerDependencies requirements!
19397 error peerinvalid Peer @angular/forms@2.0.0 wants @angular/common@^2.0.0
19397 error peerinvalid Peer @angular/platform-browser@2.0.0 wants @angular/common@^2.0.0
19397 error peerinvalid Peer @angular/platform-browser-dynamic@2.0.0 wants @angular/common@^2.0.0
19397 error peerinvalid Peer @angular/router@3.0.1 wants @angular/common@2.0.1
19398 verbose exit [ 1, true ]
Anton Moiseev (27) [Avatar] Offline
#4
You need at least npm v3 for angular packages. I would recommend upgrading node and npm to the most recent versions.
burton (31) [Avatar] Offline
#5
The latest LTS node is 4.5.0 and it includes npm 2.15.9. So the recommendation is to not install the LTS of node?