I am newbie to cordova i have installed it properly. right now I am facing issue in adding platform for android. This is my cordova version
9.0.0 ([email protected])
This is the error i am getting , can anyone help me to solve this
Using cordova-fetch for cordova-android@^8.0.0
Failed to fetch platform cordova-android@^8.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code ENOENT
Platforms
Available platforms:
android ^8.0.0
browser ^6.0.0
electron ^1.0.0
ios ^5.0.0
osx ^5.0.0
windows ^7.0.0
08-08-2019
Ionic 4
I have a dev environment issue. I didn't use the latest Ionic CLI and Cordova CLI. After I updated those then no issues and I was able to build the APK.