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
You should check what version of android is provided by cordova. You can check it in
C:/Users/%USER%/.cordova/lib/npm-cache/cordova-androidThen, you install the Android platform version provided. For me it was
@5.1.0which was in my cordova-android folder. So I used the cmd line following:cordova platform add [email protected]which should be a different version for you