I have started a new ionic v1 project:
-
ionic start todo blank --type ionic1
-
cd todo && ls
-
ionic cordova platform add ios
but with the latest command i get the following error:
Running command - failed!
[ERROR] Exception: Using cordova-fetch for ios
Adding ios project...
Error: Your ios platform does not have Api.js
If i type the ionic info command i get the following version:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
Cordova Platforms : none
Ionic Framework : ionic1 1.3.3
System:
ios-deploy : 1.9.2
ios-sim : 6.1.2
Node : v6.11.3
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235
Misc:
backend : pro
Which is the problem?