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.
- Create an empty project folder.
- On the empty folder I have executed
npm initwith empty values to generate an emptypackage.json. I have added the following dependencies to my package.json.
"dependencies": { "angular2": "2.0.0-beta.9", "es6-shim": "^0.35.0" }I executed
npm installand 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?