7
votes

I upgraded ember-cli to version 2.4.3

npm install -g ember-cli

I can see -- [email protected] , in the listed dependencies, but when I check :

(master *)$ ember -v
version: 2.4.2
node: 5.6.0
os: darwin x64

ember cli version is still 2.4.2

what's wrong ?

1

1 Answers

11
votes

Updating Ember-CLI's version and ember project's version are different thing.

To update Ember-CLI:

npm uninstall -g ember-cli 
npm cache clean 
bower cache clean 
npm install -g [email protected] 

To update your project:

rm -rf node_modules bower_components dist tmp 
npm install --save-dev [email protected] 
npm install 
bower install
ember init 

Here is the resource: https://github.com/ember-cli/ember-cli/releases

I strongly recomend you to select which files will be overwritten. You should compare diffs of files. application.hbs, router.js, environment.js, ember-cli-build.js are important files those you don't want them to be overwritten.


UPDATE 2020-02-19:

ember-cli-update handles updating your project.