# How to npm install the latest version of ionic 2

**URL:** <https://forum.ionicframework.com/t/how-to-npm-install-the-latest-version-of-ionic-2/86704>\
**Category:** ionic-v3\
**Created:** [April 16, 2017, 4:16pm UTC](https://forum.ionicframework.com/t/how-to-npm-install-the-latest-version-of-ionic-2/86704 "2017-04-16T16:16:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipgriffin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/philipgriffin/32/110462_2.png) [@philipgriffin](https://forum.ionicframework.com/u/philipgriffin)\
**Post date:** [April 16, 2017, 4:16pm UTC](https://forum.ionicframework.com/t/how-to-npm-install-the-latest-version-of-ionic-2/86704/1 "2017-04-16T16:16:56Z")

</div>

I’m unsure about how to do this and accidentally installed ionic 3 which I did not want.

Also will I need to install specific versions of Angular with this too?

Thanks.

---

<div class="post-metadata">

**Author:** ![luukschoen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/luukschoen/32/98585_2.png) [@luukschoen](https://forum.ionicframework.com/u/luukschoen)\
**Post date:** [April 16, 2017, 4:22pm UTC](https://forum.ionicframework.com/t/how-to-npm-install-the-latest-version-of-ionic-2/86704/2 "2017-04-16T16:22:37Z")

</div>

What exactly is your question? Did you install Ionic CLI v3 or framework version 3? If it’s the latter, I would say that you should remain on that version (perhaps not making use of lazy loading). If you wan’t to downgrade your cli just run npm install -g ionic . npm install -g ionic@beta installs ionic cli version 3. Your angular version is defined inside your package.json, which should just be up to date when starting of with a template or blank starter.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [April 16, 2017, 4:54pm UTC](https://forum.ionicframework.com/t/how-to-npm-install-the-latest-version-of-ionic-2/86704/3 "2017-04-16T16:54:59Z")

</div>

The “ionic” you install via npm is actually Ionic CLI. Ionic the framework is called “ionic-angular” in your package.json that gets created after you start a new Ionic project (with the CLI).

So if you want to use a specific Ionic Framework version, set it in package.json and then run `npm install` in your app directory.
