Upgrading your project

Ember CLI is constantly being upgraded and every six weeks Ember.js has another release. It is important to keep your build tools and versions up to date. In this recipe we'll look at the best way of doing this.

How to do it...

To upgrade your Ember CLI version, you must perform the following steps:

  1. Begin by uninstalling the old ember-cli:
    $ npm uninstall –g ember-cli
    
  2. Clear the npm cache:
    $ npm cache clean
    
  3. Clear the Bower cache:
    $ bower cache clean
    
  4. Install the latest version of ember-cli:
    $ npm install –g ember-cli
    
  5. If you need, you can specify the version to use represented by X.X.X:
    $ npm install –g ember-cli@X.X.X
    

Updating an existing project

In some situations, you might want to take an existing project and update it to the ...

Get Ember.js Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.