title: I am gettin an error when try to generate android or ios build of ionic project
body: <p>I have project build in ionic</p>
  <p>I run the following command</p>
  <pre><code>ionic cordova platform remove ios
  ionic cordova platform remove android
  
  ionic cordova platform add ios
  ionic cordova platform add android
  </code></pre>
  <p>when I run them on my project folder I got the error in the following screenshot</p>
  <p><a href="https://i.stack.imgur.com/eWhVA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eWhVA.png" alt="enter image description here" /></a></p>
  <p>I have tried to delete node_modules folder and run npm install command again but this does not solve my problem</p>