You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Lorin Beer (JIRA)" <ji...@apache.org> on 2013/10/11 23:53:41 UTC

[jira] [Resolved] (CB-5023) www folder empty when using CLI create

     [ https://issues.apache.org/jira/browse/CB-5023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lorin Beer resolved CB-5023.
----------------------------

    Resolution: Cannot Reproduce

fresh install of Cordova, 
ran the following:
$cordova -v
3.1.0-0.1.0
$cordova create -d MyTest de.sebastianzillessen.mytest MapTest
Creating a new cordova project with name "MapTest" and id "de.sebastianzillessen.mytest" at location "/Users/lorin/MyTest"
Using stock cordova hello-world application.
cordova library for "www" already exists. No need to download. Continuing.
Copying stock Cordova www assets into "/Users/lorin/MyTest/www"

Aside from differences in the path, this is the expected output. 
www/ directory contains the correct version of the Cordova hello-world app.

I'm closing this bug as unreproducible.

[~sebastianzillessen], thanks for your input, we appreciate notification of all possible problems!

I think Steve is on the right track, and that this is likely an issue with your installation of the Cordova CLI
Try a fresh install

$rm -r ~/.cordova/lib/www
$npm uninstall cordova -g
$npm install cordova -g

pay attention to any failed http GET requests in the npm install output.

now when you try your create command:
$ cordova create -d MyTest de.sebastianzillessen.mytest MapTest
Creating a new cordova project with name "MapTest" and id "de.sebastianzillessen.mytest" at location "/Users/lorin/MyTest"
Using stock cordova hello-world application.
***Requesting {"uri":"https://git-wip-us.apache.org/repos/asf?p=cordova-app-hello-world.git;a=snapshot;h=3.1.0;sf=tgz"}...
Downloaded, unzipped and extracted 7301992 byte response.***
Copying stock Cordova www assets into "/Users/lorin/MyTest/www"

You should see the bolded output as well as what you reported. The versioned hello world projects are kept in Users/name/.cordova/lib/www/cordova and copied from there to your cordova cli project. 

For any additional tech support, please try one of our help channels.

> www folder empty when using CLI create
> --------------------------------------
>
>                 Key: CB-5023
>                 URL: https://issues.apache.org/jira/browse/CB-5023
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.1.0
>         Environment: Mac OSX 10.8.5
>            Reporter: Sebastian Zillessen
>            Assignee: Lorin Beer
>
> When I create a new cordova project with
> {code}
> cordova create -d MyTest de.sebastianzillessen.mytest MapTest
> Creating a new cordova project with name "MapTest" and id "de.sebastianzillessen.mytest" at location "/Users/sebastianzillessen/Spitzeljagd_Entwicklung/2.0/prototypes/MyTest"
> Using stock cordova hello-world application.
> cordova library for "www" already exists. No need to download. Continuing.
> Copying stock Cordova www assets into "/Users/sebastianzillessen/Spitzeljagd_Entwicklung/2.0/prototypes/MyTest/www"
> {code}
> the CLI creates the project but the complete `www`-folder is empty.
> The folder did not exists before.
> I installed cordova with
> {code}
> npm install -g cordova
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)