Cordoba Android: “version not found” after update

I just updated the Cordoba version via

Sudo npm -g cordova update

everything went well and I created a new application. 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 get

android platform: 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"}

It seems that nmp did not lie to me. Do you have the same problem?

+5
source share
3 answers

It seems that Cordova 3.6.4 does not exist yet. I added Cordoba 3.6.3 and it worked:

cordova platform add android@3.6.3 --usenpm 
+8
source

using

 npm update -g cordova@latest 

this installs the correct release versions, 3.6.3, and not 3.7.0 rc, which cause this error.

+5
source

npm update -g cordova installs 3.7.0, which has not yet been released and seems to be broken.

For everything to be alright, I had to

 npm install -g cordova@3.6.3-0.2.13 

(even if cordova platform add android@3.6.3 --usenpm seems to work, I am afraid that other things may behave strangely if we use half 3.7.0 / half 3.6.3 ...)

0
source

Source: https://habr.com/ru/post/1203881/


All Articles