Reputation: 2175
When I try to upgrade aurelia-cli from 0.21.0 to 0.23.0 on Mac OS X 10.11.6, au -v
displays the version as 0.21.0 instead of 0.23.0. I even tried the following, to no avail.
npm uninstall aurelia-cli -g
npm cache clean
npm install aurelia-cli -g
au -v
0.21.0
npm outdated
Package Current Wanted Latest
aurelia-cli 0.21.0 0.23.0 0.23.0
Upvotes: 0
Views: 476
Reputation: 10897
There's a few things you'll need to do. First, and based on your comments, you may have already done this: you need to run npm install aurelia-cli --save-dev
. This will update the local version of the Aurelia CLI. Each Aurelia project gets its own local version of the CLI so that upgrading your global version of the CLI won't magically break something in a project. This is especially important currently with the CLI in alpha and thus the possibility of breaking changes being somewhat likely.
If you have already done this and you're still seeing 0.21.0
when you run au -v
, then run rm -rf node_modules
in the project directory and then npm install
. Sometimes npm can be a pain in the butt.
As you are moving from v0.21.0
of the CLI to v0.23.0
, you will need to follow the instructions for updating your aurelia.json
file found here. These instructions are unrelated to the problem you're having, but you need to be aware of them.
I hope this helps!
Upvotes: 1