How to change the version of Cordova in Ionic?

Asked

Viewed 1,363 times

0

I need to change the Cordova version of an Ionic project I’m testing, is that possible? If so, how can I do that? I currently have this version:

inserir a descrição da imagem aqui

But I would like to switch to version 7.0 . Which npm command I use?

2 answers

0

To use an earlier version you can do so. If you are in the latest version of Ionic:

Ionic start myApp2 --v2

Ionic start myApp3 --v3

So after the installation you have the option to add the corresponding Cordova to your installed version, even if you are in the latest version of Cordova

0

npm install -g cordova@latest

or

npm install -g [email protected] -> where: x.x.x = version

  • And in case update only locally?

  • What you mean by "only locally"?

  • the version of Cordova within a project, not globally.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.