Ionic CLI 4 and ionic-v1 apps - anyone tested?

So I know this is probably like asking if anyone has tested if a rotary phone will be able to navigate a new alexa enabled IVR, but I need to ask:

I have an ionic-v1 project with many cordova plugins. I got a notification that the CLI has been updated to 4.0 (probably to align with the core beta framework release of 4 beta). I am currently on 3.20.0.

I usually like updating (like shiny new things) but don’t want to spend a full day after that trying to figure out why I can’t compile anymore. All this npm/nodejs/foo scares me in general ,but Ionic 4 seems to be a big change in terms of components/approach. Once broken, it takes me a wasted day to reset.

So anyone tried cli 4 with an ionic-v1 project ?

I have a few ionic 3 projects and ran the update today when it popped up during a new build.

As soon as the update was finished I couldn’t run any ‘ionic ’ including ‘ionic info’. It gave me some error about the command not being found in a node_modules directory so I npm uninstalled and reverted to 3.20.0 and now it’s building fine again.

I know this isn’t exactly what you asked since I don’t use ionic v1, but my recommendation based on my attempted upgrade this afternoon is to wait if you don’t like to fiddle around a bit!

Ionic CLI 4 has, as usual, not too much to do with Ionic Framework 4. You should be totally fine upgrading the CLI and keep working on your v1 projects. If something goes wrong, upgrading and if necessary downgrading doesn’t have any effect on your project itself.

Thank you! Exactly what I feared and expected.

This sounds more like an issue with your npm installation to be honest, something to do with permissions and files. This happens quite often and is almost impossible to successfully debug (at least here in the forum).

One solution: Uninstall your node, install nvm (or nvm-windows if you are on Windows), install a new node (which includes npm) with this, then install ionic and cordova again and try your command again.


I actually use nvm and the error pointed to a node modules folder inside a user/my username/library/.nvm directory if I remember correctly.

I figured that I would try to debug it later and downgraded so that I could focus on pushing out an update. I generally try to upgrade dependencies when I need a break for an afternoon, so I’ll dive back in sometime later when I get a chance!

1 Like

@pliablepixels , @EvanW - did you ever get CLI 4 to work? As well, I still run my Ionic-v1 app with Ionic CLI 1.7.16 - I just always assumed CL1 V1 was designed to operate with V1-Apps. You have your cli updated to 3.20 surprised me. Since I have yet to migrate my app (heard its a pain in the a$$) to Ionic v2/v3 I never read up on latest CLI changes and just assumed CLI v2 wouldn’t work with my v1-app.

Knowing this can work, can you provide any tips or issues with your CLI 3.20 managing a v1-App? Any pitfalls or issues? Does 3.20 auto minify/uglify code in the platforms//www folder? I was told it does but in v1 ionic build iOS does not auto minify/uglify the code.

@rolinger, well, its been quite a while!
But given we ionic-v1 developers are likely an endangered species, happy to help.

Yes, I’m using CLI4 and continue to use ionic-v1^H^Htheversionthatmustnotbenamed


   ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework   : unknown
   @ionic/v1-toolkit : 1.0.19


   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 8.0.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 30 other plugins)

THANKS! I am going to push the next version of my app to the stores this week and then I will go through the Ionic CLI upgrade and hope it doesn’t break anything.

Does CLI 4.5.0 do auto-minify/uglify upon builds or --release builds? I read it does in a thread but can find any real documentation that says it does or it does not.

Don’t know TBH. I had turned off minify/uglify a long time ago in the hooks folder because they were causing issues with my desktop electron build.