Can't upgrade ember-cli


#1

I’ve been fighting with ember-cli for hours now just trying to upgrade ember from default of 1.13.15 to 2.3.0

Following the directions I found on GitHub and the site but my system just does not want to upgrade.

Here’s what I’m doing in console. In this case I just installed nvm and pinned node to the last stable version so I didn’t even HAVE ember-cli installed in that version of nvm - yet for some reason I’m still getting the old version of ember-cli

Appreciate your help!

~/ember$ npm uninstall -g ember-cli; npm cache clean; bower cache clean; npm install -g ember-cli@2.3.0
npm WARN uninstall not installed in /Users/ayb/.nvm/versions/node/v4.3.1/lib/node_modules: "ember-cli"
bower deleted       Cached package ember: /Users/ayb/.cache/bower/packages/6c52274ebac940c836cec79e11a2d66a/1.13.12
bower deleted       Cached package ember-cli-test-loader: /Users/ayb/.cache/bower/packages/fe70ed35683979c3b9a86502abc892c8/0.2.1
bower deleted       Cached package ember-data: /Users/ayb/.cache/bower/packages/b56c7ee7b1cb5f358555b733f3ec15c1/1.13.15
bower deleted       Cached package ember-load-initializers: /Users/ayb/.cache/bower/packages/ace05fe526bc815d00157b3e7fdcccab/0.1.7
bower deleted       Cached package ember-cli-shims: /Users/ayb/.cache/bower/packages/b2aa621bf259c52274bc62a524406e11/0.0.6
bower deleted       Cached package ember-qunit: /Users/ayb/.cache/bower/packages/6b2637f1e3c33e331968889fd7088678/0.4.16
bower deleted       Cached package ember-qunit-notifications: /Users/ayb/.cache/bower/packages/ebaf09c3e2e50cee4fa08625051f7d60/0.1.0
bower deleted       Cached package qunit-notifications: /Users/ayb/.cache/bower/packages/cb84eb840aaebd3c38265d13fc3e2e70/0.1.0
bower deleted       Cached package loader.js: /Users/ayb/.cache/bower/packages/b765bce6e48383520b38bc3732776d8e/3.4.0
bower deleted       Cached package ember-resolver: /Users/ayb/.cache/bower/packages/93ca6e97b9b9d8c72c8101fc00862583/0.1.21
bower deleted       Cached package qunit: /Users/ayb/.cache/bower/packages/db7350f12693d26675a7426499405707/1.20.0
bower deleted       Cached package jquery: /Users/ayb/.cache/bower/packages/8ccd8ff8cca80bc6237ebfb752ea634b/1.11.3
npm WARN deprecated lodash-node@2.4.1: This package has been discontinued in favor of lodash@^4.0.0.
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
/Users/ayb/.nvm/versions/node/v4.3.1/bin/ember -> /Users/ayb/.nvm/versions/node/v4.3.1/lib/node_modules/ember-cli/bin/ember
ember-cli@2.3.0 /Users/ayb/.nvm/versions/node/v4.3.1/lib/node_modules/ember-cli
├── ember-cli-test-info@1.0.0
├── ember-cli-path-utils@1.0.0
├── ember-cli-string-utils@1.0.0
├── ember-cli-is-package-missing@1.0.0
├── clean-base-url@1.0.0
├── ember-cli-normalize-entity-name@1.0.0
├── silent-error@1.0.0
├── amd-name-resolver@0.0.2
├── fs-monitor-stack@1.1.0
├── diff@1.4.0
├── broccoli-funnel-reducer@1.0.0
├── pleasant-progress@1.1.0
├── is-git-url@0.2.3
├── escape-string-regexp@1.0.4
├── tree-sync@1.0.2
├── isbinaryfile@2.0.4
├── broccoli-kitchen-sink-helpers@0.3.1
├── broccoli-source@1.1.0
├── exists-sync@0.0.3
├── promise-map-series@0.2.2
├── get-caller-file@1.0.1
├── inflection@1.8.0
├── bower-endpoint-parser@0.2.2
├── broccoli-viz@2.0.1
├── node-modules-path@1.0.1
├── through@2.3.8
├── semver@5.1.0
├── node-uuid@1.4.7
├── exit@0.1.2
├── broccoli-sane-watcher@1.1.4 (broccoli-slow-trees@1.1.0)
├── temp@0.8.3 (os-tmpdir@1.0.1, rimraf@2.2.8)
├── symlink-or-copy@1.0.1 (copy-dereference@1.0.0)
├── debug@2.2.0 (ms@0.7.1)
├── nopt@3.0.6 (abbrev@1.0.7)
├── portfinder@0.4.0 (async@0.9.0)
├── http-proxy@1.13.2 (eventemitter3@1.1.1, requires-port@1.0.0)
├── rsvp@3.2.1
├── findup@0.1.5 (commander@2.1.0, colors@0.6.2)
├── chalk@1.1.1 (supports-color@2.0.0, ansi-styles@2.1.0, strip-ansi@3.0.0, has-ansi@2.0.0)
├── readline2@0.1.1 (mute-stream@0.0.4, strip-ansi@2.0.1)
├── morgan@1.7.0 (on-headers@1.0.1, basic-auth@1.0.3, depd@1.1.0, on-finished@2.3.0)
├── merge-defaults@0.2.1 (lodash@2.4.2)
├── minimatch@3.0.0 (brace-expansion@1.1.3)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── configstore@1.4.0 (os-tmpdir@1.0.1, object-assign@4.0.1, graceful-fs@4.1.3, uuid@2.0.1, xdg-basedir@2.0.0, osenv@0.1.3, write-file-atomic@1.1.4)
├── rimraf@2.5.2 (glob@7.0.0)
├── fs-extra@0.26.2 (path-is-absolute@1.0.0, graceful-fs@4.1.3, klaw@1.1.3, jsonfile@2.2.3)
├── fs-tree-diff@0.4.4 (fast-ordered-set@1.0.2)
├── quick-temp@0.1.5 (mktemp@0.3.5, rimraf@2.2.8, underscore.string@2.3.3)
├── glob@5.0.13 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.4, minimatch@2.0.10)
├── compression@1.6.1 (on-headers@1.0.1, vary@1.1.0, bytes@2.2.0, compressible@2.0.7, accepts@1.3.1)
├── walk-sync@0.2.6 (matcher-collection@1.0.1)
├── findup-sync@0.2.1 (glob@4.3.5)
├── broccoli-plugin@1.2.1
├── broccoli-config-replace@1.1.1 (fs-extra@0.24.0)
├── broccoli-funnel@1.0.1 (array-equal@1.0.0, blank-object@1.0.1, path-posix@1.0.0, fs-tree-diff@0.3.1, fast-ordered-set@1.0.2, minimatch@2.0.10)
├── resolve@1.1.7
├── cpr@0.4.2 (graceful-fs@4.1.3, rimraf@2.4.5)
├── yam@0.0.18 (fs-extra@0.16.5, lodash.merge@3.3.2)
├── express@4.13.4 (escape-html@1.0.3, array-flatten@1.1.1, cookie-signature@1.0.6, utils-merge@1.0.0, vary@1.0.1, methods@1.1.2, merge-descriptors@1.0.1, content-type@1.0.1, fresh@0.3.0, range-parser@1.0.3, parseurl@1.3.1, etag@1.7.0, path-to-regexp@0.1.7, cookie@0.1.5, content-disposition@0.5.1, serve-static@1.10.2, depd@1.1.0, qs@4.0.0, on-finished@2.3.0, finalhandler@0.4.1, proxy-addr@1.0.10, accepts@1.2.13, type-is@1.6.11, send@0.13.1)
├── git-repo-info@1.1.2
├── sane@1.3.1 (watch@0.10.0, minimist@1.2.0, exec-sh@0.2.0, minimatch@0.2.14, fb-watchman@1.9.0, walker@1.0.7)
├── broccoli-config-loader@1.0.0 (broccoli-caching-writer@2.2.1)
├── tiny-lr@0.2.1 (parseurl@1.3.1, livereload-js@2.2.2, qs@5.1.0, body-parser@1.14.2, faye-websocket@0.10.0)
├── markdown-it@4.3.0 (linkify-it@1.2.0, mdurl@1.0.1, uc.micro@1.0.0, entities@1.1.1, argparse@1.0.6)
├── broccoli-merge-trees@1.1.1 (fast-ordered-set@1.0.2, can-symlink@1.0.0)
├── ember-router-generator@1.2.0 (recast@0.9.18)
├── markdown-it-terminal@0.0.3 (ansi-styles@2.1.0, cli-table@0.3.1, lodash.merge@3.3.2, cardinal@0.5.0, markdown-it@4.4.0)
├── broccoli-concat@2.1.0 (broccoli-kitchen-sink-helpers@0.2.9, lodash.merge@3.3.2, minimatch@2.0.10, lodash.omit@3.1.0, broccoli-caching-writer@2.2.1, lodash.uniq@3.2.2, fast-sourcemap-concat@0.2.7)
├── leek@0.0.21 (lodash.assign@3.2.0, request@2.69.0)
├── testem@1.3.0 (styled_string@0.0.1, did_it_work@0.0.6, printf@0.2.3, async@1.5.2, xmldom@0.1.22, charm@1.0.0, commander@2.9.0, mustache@2.2.1, backbone@1.2.3, fireworm@0.7.0, fileset@0.2.1, tap-parser@1.2.2, consolidate@0.14.0, cross-spawn-async@2.1.8, npmlog@2.0.2, js-yaml@3.5.3, socket.io@1.4.5, node-notifier@4.5.0)
├── ember-cli-preprocess-registry@2.0.0 (process-relative-require@1.0.0, broccoli-clean-css@1.1.0, lodash@3.10.1)
├── broccoli@0.16.9 (broccoli-slow-trees@1.1.0, copy-dereference@1.0.0, broccoli-kitchen-sink-helpers@0.2.9, mime@1.3.4, commander@2.9.0, connect@3.4.1, handlebars@4.0.5)
├── bower-config@0.6.1 (osenv@0.0.3, graceful-fs@2.0.3, optimist@0.6.1, mout@0.9.1)
├── core-object@0.0.2 (lodash-node@2.4.1)
├── lodash@4.5.0
├── inquirer@0.5.1 (mute-stream@0.0.4, async@0.8.0, lodash@2.4.2, chalk@0.4.0, cli-color@0.3.3)
├── broccoli-babel-transpiler@5.5.0 (clone@0.2.0, json-stable-stringify@1.0.1, broccoli-persistent-filter@1.1.8, babel-core@5.8.35)
├── npm@2.14.10
└── bower@1.7.7
~/ember$ ember -v
version: 1.13.15
node: 4.3.1
npm: 2.14.10
os: darwin x64

#2

Try running ember -v in an other/new folder. It should give you the correct version.


#3

doh!

strange that this happens

thanks :slightly_smiling:


#4

No it isn’t. You want the old Ember in your old project. To upgrade your project run:

  1. rm -rf node_modules bower_components dist tmp – Delete temporary development folders.
  2. npm install --save-dev ember-cli@2.3.0 – Update project’s package.json to use latest version.
  3. npm install – Reinstall NPM dependencies.
  4. bower install – Reinstall bower dependencies.
  5. ember init – This runs the new project blueprint on your projects directory. Please follow the prompts, and review all changes (tip: you can see a diff by pressing d). The most common source of upgrade pain is missing changes in this step.

#5

There are two version of the upgrading in the docs - upgrade global Ember CLI and upgrade project.

You have upgraded the global version. For upgrading an existing project take a look at http://ember-cli.com/user-guide/#project-update