title: Migrating Angular 4.x to Angular 5
body: <p>I have read the following blogs and documentation </p>
  
  <ul>
  <li><a href="https://blog.angular.io/version-5-0-0-of-angular-now-available-37e414935ced" rel="noreferrer">Angular Blog</a></li>
  <li><a href="https://alligator.io/angular/angular-5/" rel="noreferrer">Alligator IO Docs</a></li>
  <li><a href="https://angular.io/docs" rel="noreferrer">Official Documentation</a></li>
  </ul>
  
  <p>and no clear information about how to migrate from 4.x to 5.</p>
  
  <p>Tried the following commands</p>
  
  <ul>
  <li><p>npm install </p>
  
  <pre><code>npm install @angular/{animations,common,compiler,compiler-cli,
              core,forms,http,platform-browser,platform-browser-dynamic,
              platform-server,router}@5.0.0
  </code></pre></li>
  <li><p>yarn installation</p>
  
  <pre><code>yarn add @angular/{animations,common,compiler,compiler-cli,
           core,forms,http,platform-browser,platform-browser-dynamic,
           platform-server,router}@5.0.0
  </code></pre></li>
  <li><p>Tried the <a href="https://angular-update-guide.firebaseapp.com/" rel="noreferrer">update guide</a></p>
  
  <pre><code> npm install @angular/animations@'^5.0.0' @angular/common@'^5.0.0' 
          @angular/compiler@'^5.0.0' @angular/compiler-cli@'^5.0.0' 
          @angular/core@'^5.0.0' @angular/forms@'^5.0.0'
          @angular/http@'^5.0.0' @angular/platform-browser@'^5.0.0' 
          @angular/platform-browser-dynamic@'^5.0.0' 
          @angular/platform-server@'^5.0.0' @angular/router@'^5.0.0' 
          typescript@2.4.2 rxjs@'^5.5.2'
  
   npm install typescript@2.4.2 --save-exact
  </code></pre></li>
  </ul>
  
  <p>Nothing worked fine for me. Please help</p>