I took a quick look, I have a guess on what's going on

People should just wait 24 hours and try again, or use platform add by path
or git
Or delete the cache ~/.cordova/lib/npm_cache

We configure the npm cache config [1] with cache-min = 3600 *24, meaning 24
hours
if .cache.json [2] is not older than 24 hours npm will not try the network

Also I think there is bug since there is no catch/fail when calling npm
cache add

[1]:
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/lazy_load.js#L153
[2]: ~/.cordova/lib/npm_cache/registry.npmjs.org/cordova-ios/.cache.json
[3]:
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/lazy_load.js#L158


On Thu, Mar 3, 2016 at 11:32 AM So, Byoungro <[email protected]> wrote:

> Alexis,
> [email protected] does not exist.
> You can find the available versions here.
> https://github.com/apache/cordova-ios/releases
> If you need the latest Android version, do the following:
> cordova platform add [email protected]
>
> Zarko,
> I have no issue with adding [email protected].
> You may want to check your connection and proxy configuration.
> NPM registry could be down temporarily.
>
> Byoungro So
> SSG / DPD / Mobile Computing and Compilers
> Intel Corporation
>
> From: "Pridham, Marcus" <[email protected]<mailto:
> [email protected]>>
> Reply-To: "[email protected]<mailto:[email protected]>" <
> [email protected]<mailto:[email protected]>>
> Date: Thursday, March 3, 2016 at 7:19 AM
> To: "[email protected]<mailto:[email protected]>" <
> [email protected]<mailto:[email protected]>>
> Subject: Re: Cannot add/find cordova-ios 4.1.0
>
> Deleting the ~/.cordova folder fixes the issue for me.
>
>
>
>
> On 3/3/16, 4:56 AM, "Alexis Kofman" <[email protected]<mailto:
> [email protected]>> wrote:
>
> Hello guys !
>
> Same here with the last Android version :
>
> $ cordova platform add [email protected]<mailto:[email protected]>
> Error: Failed to fetch platform [email protected]<mailto:[email protected]>
> Probably this is either a connection problem, or platform spec is
> incorrect.
> Check your connection and platform name/version/URL.
> Error: version not found: [email protected]<mailto:[email protected]>
>
>
>
> On Thu, Mar 3, 2016 at 10:45 AM, Zarko Hristovski <[email protected]
> <mailto:[email protected]>> wrote:
>
> Using cordova 6.0.0
>
> cordova create test_ios && cd test_ios && cordova platform add [email protected]
> <mailto:[email protected]>
>
> yields
>
> Creating a new cordova project.
> Error: Failed to fetch platform [email protected]<mailto:[email protected]>
> Probably this is either a connection problem, or platform spec is
> incorrect.
> Check your connection and platform name/version/URL.
> Error: version not found: [email protected]<mailto:[email protected]>
>
>
> I thought cordova-ios 4.1.0 was released!?
>
> https://www.npmjs.com/package/cordova-ios
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]<mailto:
> [email protected]>
> For additional commands, e-mail: [email protected]<mailto:
> [email protected]>
>
>
>
>
> --
> Alexis Kofman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to