Serve ionic 1.3 with Ionic CLI 3?


#1

Hello

Im from indonesian, i have problem with the ionic,
i have project with ionic 1.3 before, in my pc have latest version of ionic (3)
my question is ::

1.if i want to continue my project, do i have to make it from beginning ?
2.whether it will be error if i keep ionic 1 code, if i have updated ionic version


#2

Ionic CLI and Ionic Framework are two different things.

I assume you are talking about Ionic CLI 3.x, which is totally capable of running Ionic Framework 1.3 projects.

Typing ionic info in your project will give some output that will show the exact version numbers.


#3

after typing ionic info, im must install dependencies ? or proceed by typing the ionic serve


#4

ionic info will give you some output. Post that here.


#5

this result that i have, after typing ionic info in my project

? Looks like a fresh checkout! No ./node_modules directory found. Would you lik
e to install project dependencies? No

cli packages: (C:\Users\admin\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

local packages:

Ionic Framework : ionic1 1.3.1

System:

Node : v8.11.3
npm  : 5.6.0
OS   : Windows 7

Misc:

backend : pro

#6

So you are running Ionic CL 3.20.0, and your project is Ionic 1.3.1. This should be no problem at all, just install the dependencies for your project (manually with npm install or by answering yes the next time) and then ionic serve should work just fine for your project.