I just did a sudo npm install -g ionic@beta expecting ionic to be upgraded to beta 8 but I see the same value. I don’t have a project yet - I am about to start one, and wanted to make sure I use beta 8 due to the changes. What else do I need to do?
I’ve read posts like these - but they deal with upgrading existing projects for the rest of the post.
I just upgraded to beta.0.0.8. When I run ionic -v, I get 2.0.0-beta.25. Seems random?? My app is also no longer running at all. Just a blank white screen and no error messages in the console.
Fixed the blank screen. I had an issue with the new ionicBootstrap they put in beta.8. Make sure you put ionicBootstrap below and outside of your main App class in app.ts
To clear things up, when you run sudo npm install -g ionic@beta you are installing the CLI (Command Line Interface) which lets you run the commands such as ionic start, ionic serve, etc. The Ionic CLI docs can be found here: http://ionicframework.com/docs/v2/cli/
So running ionic -v will give you the CLI version, not the framework version.
The framework version exists inside of the project, so you will not see a version number until you start a project. For example, here is my ionic info if I run this command inside of my project:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.8
Ionic CLI Version: 2.0.0-beta.30
When you run ionic start it will generate a project using one of our starters. The following repositories hold the starters, and each one uses ionic2-app-base in order to determine the framework version:
So, when you start a new project using the CLI, it will create a project using whatever version is defined in the package.json of the ionic2-app-base repository:
We also have some documentation here to explain the different modules and npm:
There is nothing more you need to do in order to create a project using beta 8. We have already updated all of the starters with those steps. Please let me know if anything I said was confusing, thanks!
I think it would be confusing to show the framework version outside of a project, since someone may accidentally run it outside of their project folder and think they have the latest version, as well as leading people to believe they can run ionic commands outside of a project which won’t work. However, if it’s something you feel strongly about I recommend creating an issue on the CLI for discussion: https://github.com/driftyco/ionic-cli/issues
It was actually showing the Ionic App Lib Version as 2.0.0-beta.16, not the Ionic Framework Version:
Ionic App Lib Version: 2.0.0-beta.16
I can see how this can be confusing though. I created an issue to clean up the ionic info command:
Is it possible to run ionic start (to build a project) and specify the framework version? If so, can you tell me how?
My situation is that I built a large app in beta.6 and now I’m interested in propagating my codebase up to the latest beta (beta.11 at the time of posting) and I’m trying to do it incrementally successfully moving to beta.7, then beta.8, … following the steps in the CHANGELOG.md file. However I’m on beta.8 and getting a white screen and it is next to impossible to debug. I’d like to build one of the starters with beta.8 to compare my code against but I can’t figure out how to do it.