-2

i am new to ionic2 and not able to create ionic2 app

if i run this command

it will create ionic3

$ npm install -g ionic cordova

i am getting error if i run this command

npm install -g ionic@2.3.0

error

npm ERR! code ETARGET
npm ERR! notarget No matching version found for ionic@2.3.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\abc\AppData\Roaming\npm-cache\_logs\2017-07-25T08_11_14_543Z-debug.log
Suraj Rao
  • 29,388
  • 11
  • 94
  • 103
user6688672
  • 77
  • 2
  • 11

2 Answers2

1

ionic 2.2.3 doesn't exist, after releasing ionic 2.2.0, ionic cli version moved to 3.0.0.

npm install -g ionic@2.2.0 will work.

And to create ionic 2 project you need to change version of ionic-angular in you project, not in ionic-cli.

Ionic framework (ionic-angular) and ionic-cli both are different.

CHANGELOG v2.x.x.

CHANGELOG v3.x.x.

Swapnil Patwa
  • 4,069
  • 3
  • 25
  • 37
0

Refer this a link! to know the difference between ionic and ionic-angular and to create ionic2 refer this a link!

Priya
  • 147
  • 1
  • 1
  • 10