I've just updated my Cordova version via
sudo npm update -g cordova
all went good and I created a new app. Then I wanted to add Android support and then this happened:
cordova platform add android npm http GET
https://registry.npmjs.org/cordova-android/3.6.4 npm http 404
https://registry.npmjs.org/cordova-android/3.6.4 Unable to fetch
platform android: Error: version not found: 3.6.4 :
cordova-android/3.6.4
If I check https://registry.npmjs.org/cordova-android/3.6.4 it says {"error":"version not found: 3.6.4"}
Looks like npm did not lie to me. Do you have the same issue?
Update Cordova CLI, cordova Then compare the returned version number to the output of npm info cordova version (You can also check manually for the newest available version on npm or GitHub). Run cordova -v again after the update to make sure the update worked and it now returns the current version.
If you are using any version below cordova-android 10.0. 0, install the Java Development Kit (JDK) 8. The JAVA_HOME environment variable must be set according to your JDK installation path when installing on a Windows environment.
It seems like Cordova 3.6.4 does not exist yet. I have added Cordova 3.6.3 and it worked:
cordova platform add [email protected] --usenpm
use
npm update -g cordova@latest
this installs the correct release versions, 3.6.3, not the 3.7.0 rc which produces this error
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With