ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

What to Replace "ionic lib update"?

Open johnmiroki opened this issue 10 years ago • 11 comments

I am using the latest Ionic Cli (installed yesterday). When trying to update the lib of an existing project (the official starter to be exact) to the brand new angular 2 release version, I got this:

This command has been deprecate.  All resources are currently available in NPM and we recommend that you use NPM to manage these.
More information is available here: https://github.com/driftyco/ionic-cli/wiki/Migrating-to-NPM-from-bower

Unable to load ionic lib version information

Are you sure you want to replace C:\playground\MyIonic2Project\www\lib\ionic with an updated version of Ionic?
(yes/no): yes
Invalid version: undefined

Following the link above(https://github.com/driftyco/ionic-cli/wiki/Migrating-to-NPM-from-bower) didn't help since it's practically a blank page.

Any idea would be appreciated!

johnmiroki avatar Sep 18 '16 09:09 johnmiroki

+1

brace110 avatar Sep 22 '16 15:09 brace110

So as right now we are stuck in limbo. Its either old version of lib or manually migrate the entire deps?

polonel avatar Oct 11 '16 06:10 polonel

I just downloaded the latest framework version from the ionic website and pasted it over the old one. It works but it might be risky.

brace110 avatar Oct 11 '16 14:10 brace110

still not solved?

katche70 avatar Nov 23 '16 09:11 katche70

Any update on how to get this correctly migrated? Or how to continue to support an Ionic1 project with newer versions of Cordova and the Ionic-CLI?

wxmerkt avatar Dec 27 '16 16:12 wxmerkt

This totally screwed up my app! I updated the CLI and Cordova and now I am having nothing but issues! Tried updating the project lib and got the same message as OP.

rgecy avatar Jan 03 '17 20:01 rgecy

Is this some thing necessary to do. Because I started the project when angular 2 and ionic 2 was in beta. Anyway the update command lead to the "Invalid version: undefined" error.

anuradhawick avatar Jan 10 '17 03:01 anuradhawick

👍

prantikv avatar Feb 01 '17 13:02 prantikv

I'm using cli 2.2.1, same issue I can't run ionic lib update, there is not ..\www\lib\ionic\bower.json

betollaque avatar Feb 28 '17 03:02 betollaque

Any news on this?

ghost avatar Jun 20 '17 15:06 ghost

Use bower to update Ionic 1 lib: https://bower.io/docs/api/#update

bower update ionic, maybe? not sure

imhoffd avatar Jul 10 '17 22:07 imhoffd