cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Kinard (JIRA)" <>
Subject [jira] [Commented] (CB-7526) cordova platform add fails for ios and android
Date Fri, 12 Sep 2014 02:26:33 GMT


Marcel Kinard commented on CB-7526:

Bryan, thanks for doing the rollback.

When I manually run shasum on the tgz that I used with "npm publish", it reports the value
that matches the actual value reported in npm-debug.log. That looks good. So I did a get on
the metadata ( ) and indeed the dist:shasum value
stored in the metadata is incorrect. So the expected shasum stored in the metadata is incorrect,
but the actual shasum computed at install time is correct.

I think the incorrect behavior may be caused by the following bug as I went back and discovered
I was on node v0.11.12 when I did the "npm publish" (ah, crap):

Strangely, I can "npm -g install" all the new tools and platforms on a 2nd attempt. But "cordova
platform add" continues to fail on subsequent attempts.

I've attempted to republish these same versions using node v0.10.31 and it fails (as expected)
with a "cannot modify preexisting version" error. This matches the behavior I saw when attempting
the 3.6.0 publish.

So at this point it looks like we'll need to do the same exercise again: bump all the versions
in package.json and bump the versions in cordova-lib/.../platforms.js and similar. Unless
there are other ideas, I can start on this tomorrow. Sigh. Does this mean doing a new vote,
or do we call it simply a downstream distribution?

> cordova platform add fails for ios and android
> ----------------------------------------------
>                 Key: CB-7526
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.6.0
>            Reporter: Scott Gilroy
>            Priority: Blocker
> I created a new cordova project and attempted to add platforms
> $ cordova create HelloCordova com.twinehealth.hello HelloCordova
> Creating a new cordova project with name "HelloCordova" and id "com.twinehealth.hello"
at location "/Users/sgilroy/Documents/GitHub/HelloCordova"
> Downloading cordova library for www...
> Download complete
> $ cd HelloCordova
> $ cordova platform add ios
> npm http GET
> npm http 200
> Unable to fetch platform ios: Error: shasum check failed for /var/folders/cr/68yqxgyx32zf7b7c9cbl6msr0000gn/T/npm-56180-4vCiphuS/1410472085915-0.8748841187916696/tmp.tgz
> Expected: ae3d0a39e25f21c897812029c3fbc7f816d592a7
> Actual:   ffed0885409aed998b6d351fcae46518ad279a02
> $ cordova platform add android
> npm http GET
> npm http 200
> Unable to fetch platform android: Error: shasum check failed for /var/folders/cr/68yqxgyx32zf7b7c9cbl6msr0000gn/T/npm-56679-_qwlX-IR/1410472210058-0.6259658436756581/tmp.tgz
> Expected: b9138a0743c4f424ee62721c22dac84e8d1ca087
> Actual:   a5c74dea5a0225566e4a54185d8639a7f7f6ac3e

This message was sent by Atlassian JIRA

View raw message