Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova Android: "version not found" after update

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?

like image 718
stackiflow111 Avatar asked Oct 02 '14 16:10

stackiflow111


People also ask

How do I update Cordova to latest version?

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.

What is Cordova-Android 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.


2 Answers

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
like image 83
Tomas Hromnik Avatar answered Oct 21 '22 00:10

Tomas Hromnik


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

like image 34
msd Avatar answered Oct 21 '22 02:10

msd