olufemi jolugbo
olufemi jolugbo

Reputation: 155

How to upgrade from ionic framework v1.2.4 to ionic framework v2.0.0-beta using npm

I am trying to upgrade my ionic framework from version 1.2.4 to the latest ionic framework version 2.0.0 -beta version via node package manager (npm). I found an example from the documentation website npm install -g ionic@beta but I keep getting this error

14 error node v0.12.7 15 error npm v2.11.3 16 error code EISDIR 17 error errno -4068 18 error EISDIR, read 19 error If you need help, you may report this error at: 19 error https://github.com/npm/npm/issues 20 verbose exit [ -4068, true ]

Upvotes: 0

Views: 242

Answers (2)

M Shafique
M Shafique

Reputation: 816

Well, well, well.

Remember ionic1 project can't be shifted to ionic2 because the projects structure is completely changed in ionic2.

Ionic 2 use TypeScript.

Upvotes: 1

olufemi jolugbo
olufemi jolugbo

Reputation: 155

Apparently, I found out that to upgrade an npm package I have to:

run npm as an administrator first

Before I can run the code, I must execute:

npm install -g ionic@beta

After that it works fine.

Upvotes: 0

Related Questions