An error occurred while running subprocess capacitor when creating new Ionic project

Viewed 17025

I was working with Ionic Framework using AngularJs. Every Thing was fine. However now, When I am trying to create now Ionic/Angular js Project, I am facing a problem with the capacitor, as following:

enter image description here

enter image description here

How to solve this problem? I could not found a solution from any of the previous posts.

1 Answers

Capacitor 3 was released 2 days ago, and your ionic cli version is not compatible with it, you need to update the ionic cli version

npm uninstall -g ionic
npm uninstall -g @ionic/cli
npm install -g @ionic/cli

the first one is only needed if you were using the old ionic CLI, it was renamed to @ionic/cli long ago, but some people is still using it because they didn't know, so I put it here just in case

Related