title: Updating to Angular 4 from 2. "Unmet Peer Dependencies" for @Angular/core and @Angular/http
body: <p>I'm trying to update from Angular 2.3 to Angular 4.0 and following the instructions here:</p>
  
  <p><a href="http://webcache.googleusercontent.com/search?q=cache:Xd-ocIKZ0BkJ:angularjs.blogspot.com/2017/03/angular-400-now-available.html+&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us" rel="nofollow noreferrer">http://webcache.googleusercontent.com/search?q=cache:Xd-ocIKZ0BkJ:angularjs.blogspot.com/2017/03/angular-400-now-available.html+&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us</a></p>
  
  <p>In that article, it says that pretty much all I need to do is type this command:</p>
  
  <pre><code>npm install @angular/common@latest @angular/compiler@latest @angular/compiler-cli@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/platform-server@latest @angular/router@latest @angular/animations@latest typescript@latest --save
  </code></pre>
  
  <p>When I do that, I get these errors:</p>
  
  <pre><code>+-- UNMET PEER DEPENDENCY @angular/core@4.0.2
  +-- UNMET PEER DEPENDENCY @angular/http@4.0.2
  </code></pre>
  
  <p>I tried doing "npm install" for each of these independently of one another as described here:  <a href="https://stackoverflow.com/questions/35738346/how-to-solve-npm-unmet-peer-dependency">How to solve npm UNMET PEER DEPENDENCY</a>, but it didn't do any good.  I kept getting the same errors.</p>
  
  <p>Any suggestions?  I'm on Windows running Node 4.5.0 and npm 3.10.6.</p>
  
  <p>Here is my package.json:</p>
  
  <pre><code>{
    "name": "Project",
    "version": "1.0.1",
    "scripts": {
      "start": "tsc &amp;&amp; concurrently \"tsc -w\" \"lite-server\" \"npm run generate-css\" \"npm run watch-css\" ",
      "pree2e": "npm run webdriver:update",
      "e2e": "tsc &amp;&amp; concurrently \"http-server -s\" \"protractor protractor.config.js\" --kill-others --success first",
      "lint": "tslint ./app/**/*.ts -t verbose",
      "generate-css": "node-sass -r app --output ./generated-css",
      "watch-css": "node-sass -w -r app --output ./generated-css",
      "lite": "lite-server",
      "test": "tsc &amp;&amp; concurrently \"tsc -w\" \"karma start karma.conf.js\"",
      "test-once": "tsc &amp;&amp; karma start karma.conf.js --single-run",
      "tsc": "tsc",
      "tsc:w": "tsc -w"
    },
    "license": "",
    "author": "Me",
    "dependencies": {
      "@angular/animations": "4.0.2",
      "@angular/common": "4.0.2",
      "@angular/compiler": "4.0.2",
      "@angular/compiler-cli": "4.0.2",
      "@angular/core": "4.0.2",
      "@angular/forms": "4.0.2",
      "@angular/http": "4.0.2",
      "@angular/platform-browser": "4.0.2",
      "@angular/platform-browser-dynamic": "4.0.2",
      "@angular/platform-server": "4.0.2",
      "@angular/router": "4.0.2",
      "angular-in-memory-web-api": "0.2.4",
      "angular2-ui-switch": "1.2.0",
      "bootstrap": "3.3.7",
      "core-js": "^2.4.1",
      "mydatepicker":"1.2.9",
      "ng2-translate": "5.0.0",
      "reflect-metadata": "0.1.9",
      "rxjs": "5.0.1",
      "socket.io": "1.7.2",
      "lodash": "4.17.4",
      "socket.io-client": "1.7.2",
      "systemjs": "0.19.40",
      "wijmo": "wijmo-system-min",
      "zone.js": "0.8.5",
      "typescript": "2.2.2"
    },
    "devDependencies": {
      "@types/core-js": "0.9.35",
      "@types/jasmine": "2.5.40",
      "@types/node": "6.0.58",
      "@types/selenium-webdriver": "2.53.39",
      "@types/lodash": "4.14.62",
      "canonical-path":"0.0.2",
      "codelyzer": "0.0.25",
      "concurrently": "3.1.0",
      "http-server": "0.9.0",
      "jasmine-core": "2.5.2",
      "karma": "1.3.0",
      "karma-chrome-launcher": "2.0.0",
      "karma-cli": "1.0.1",
      "karma-htmlfile-reporter": "0.3.4",
      "karma-jasmine": "1.1.0",
      "karma-jasmine-html-reporter": "0.2.2",
      "lite-server": "2.2.2",
      "live-server": "1.1.0",
      "lodash": "4.17.4",
      "node-sass": "3.13.1",
      "nodemon": "1.11.0",
      "protractor": "3.3.0",
      "rimraf": "2.5.4",
      "tslint": "3.15.1"
    }
  }
  </code></pre>