Ionic-v1 not build iOS and android

Hi everyone,
I want to build iOS and android applications but i get this error.

Ekran Resmi 2020-03-02 09.15.05

I leave the solution here, maybe someone else will need it.

  1. rm node_modules
  2. ionic cordova platform rm ios
  3. ionic cordova platform rm android
  4. rm platforms
  5. rm plugins
  6. rm package-lock.json

After then

  1. npm install
  2. ionic init
  3. ionic cordova platform add ios or android

This steps work for me.

What version of node, ionic and cordova did you install?