npm ERR! peerinvalid during npm install step of Angular 2 Quickstart

Viewed 3388

I have node v4.4.0 and npm v2.14.20 installed on OS X (El Capitan).

I'm following steps described on 5 Min Quickstart - ts page that's available on Angular 2 official site.

However I come across the following error when I execute npm install.

npm ERR! peerinvalid The package es6-shim@0.35.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer angular2@2.0.0-beta.9 wants es6-shim@^0.33.3

In order to be able to isolate the problem this is what I have done.

  1. Create an empty project folder.
  2. On the empty folder I have executed npm init with empty values to generate an empty package.json.
  3. I have added the following dependencies to my package.json.

    "dependencies": {
      "angular2": "2.0.0-beta.9",
      "es6-shim": "^0.35.0"
    }
    
  4. I executed npm install and observe the same error above.

This is the peerDependencies inside package.json of /node_modules/angular2

"peerDependencies": {
  "es6-promise": "^3.0.2",
  "es6-shim": "^0.33.3",
  "reflect-metadata": "0.1.2",
  "rxjs": "5.0.0-beta.2",
  "zone.js": "0.5.15"
}

Given the ^0.33.3 version requirement for es6-shim peer dependency, shouldn't es6-shim be installed fine with version 0.35.0? What is the problem that I fail to see?

3 Answers
Related