I can’t able to figure out what was happen to my ionic project suddenly it throws an exception with using cordova -fetch for cordova android can any one help me to solve this problem
D:\androidApps\testApp>ionic cordova platform add android
cordova platform add android --save
x Running command - failed!
[ERROR] Exception: Using cordova-fetch for cordova-android@~6.2.2
Error: Failed to fetch platform cordova-android@~6.2.2
Probably this is either a connection problem, or platform spec is
incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! cb() never called!
D:\androidApps\testApp>ionic info
cli packages: (C:\Users\USER\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.10.2
ionic (Ionic CLI) : 3.10.3
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : none
Ionic Framework : ionic-angular 3.6.1
System:
Node : v6.11.3
npm : 3.10.10
OS : Windows 7
D:\androidApps\testApp>