[
https://issues.apache.org/jira/browse/CB-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696880#comment-13696880
]
John M. Wargo commented on CB-4032:
-----------------------------------
I tried all weekend to install via my hotel's network and it failed
consistently. Must be something weird going on with the repositories for it to
affect two different machines on three different networks.
This morning I went into the office early and it installed the first time.
Nice. Now when I try to create a project, I'm still getting errors. The lazy
load of the helloWorld app project isn't working.
OAKM00524809A:~ i833153$ cordova create test com.sap.test TestApp
[Error: downloaded www assets in
/Users/i833153/.cordova/lib/www/cordova/2.9.0/www does not contain index.html,
or www subdir with index.html]
OAKM00524809A:~ i833153$ cd dev
OAKM00524809A:dev i833153$ cordova -d create test com.sap.test TestApp
Creating a new cordova project with name "TestApp" and id "com.sap.test" at
location "/Users/i833153/dev/test"
Using stock cordova hello-world application.
cordova library for "www" already exists. No need to download. Continuing.
Copying stock Cordova www assets into "/Users/i833153/dev/test/www"
Error: downloaded www assets in
/Users/i833153/.cordova/lib/www/cordova/2.9.0/www does not contain index.html,
or www subdir with index.html
at finalize (/usr/local/lib/node_modules/cordova/src/create.js:114:27)
at /usr/local/lib/node_modules/cordova/src/create.js:154:17
at /usr/local/lib/node_modules/cordova/src/lazy_load.js:46:31
at Object.module.exports.custom
(/usr/local/lib/node_modules/cordova/src/lazy_load.js:56:34)
at Object.lazy_load [as cordova]
(/usr/local/lib/node_modules/cordova/src/lazy_load.js:41:24)
at Object.create (/usr/local/lib/node_modules/cordova/src/create.js:148:19)
at Object.<anonymous>
(/usr/local/lib/node_modules/cordova/bin/cordova:39:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
OAKM00524809A:dev i833153$ cordova -d create test com.sap.test TestApp
Creating a new cordova project with name "TestApp" and id "com.sap.test" at
location "/Users/i833153/dev/test"
Using stock cordova hello-world application.
Requesting
https://git-wip-us.apache.org/repos/asf?p=cordova-app-hello-world.git;a=snapshot;h=2.9.0;sf=tgz...
Error: getaddrinfo ENOTFOUND
at errnoException (dns.js:37:11)
at Object.onanswer [as oncomplete] (dns.js:124:16)
So I manually extracted the helloworld app to the specified folder, but create
still doesn't work:
OAKM00524809A:dev i833153$ cordova -d create test com.sap.test TestApp
Creating a new cordova project with name "TestApp" and id "com.sap.test" at
location "/Users/i833153/dev/test"
Using stock cordova hello-world application.
cordova library for "www" already exists. No need to download. Continuing.
Copying stock Cordova www assets into "/Users/i833153/dev/test/www"
OAKM00524809A:dev i833153$ cd test
OAKM00524809A:test i833153$ cordova platform add ios
{ [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND',
syscall: 'getaddrinfo' }
OAKM00524809A:test i833153$ cordova -d platform add ios
cordova library for "ios" already exists. No need to download. Continuing.
Checking if platform "ios" passes minimum requirements...
Checking iOS requirements...
Running "xcodebuild -version" (output to follow)
Xcode 4.6.3
Build version 4H1503
Running bin/create for platform "ios" with command:
""/Users/i833153/.cordova/lib/ios/cordova/2.9.0/bin/create" --arc
"/Users/i833153/dev/test/platforms/ios" "com.sap.test" "TestApp"" (output to
follow)
/bin/sh: /Users/i833153/.cordova/lib/ios/cordova/2.9.0/bin/create: No such file
or directory
Error: An error occured during creation of ios sub-project. /bin/sh:
/Users/i833153/.cordova/lib/ios/cordova/2.9.0/bin/create: No such file or
directory
at /usr/local/lib/node_modules/cordova/src/platform.js:230:35
at /usr/local/lib/node_modules/cordova/node_modules/shelljs/shell.js:1707:7
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
OAKM00524809A:test i833153$
The CLI is 'installing' but seems to be non-functional. After I run the cordova
platform add, there's a new folder structure under
~/.cordova/lib/ios/cordova/2.9.0, but there's nothing in it.
> 2.9 missing www files
> ---------------------
>
> Key: CB-4032
> URL: https://issues.apache.org/jira/browse/CB-4032
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.9.0
> Environment: Macintosh OS 10.8.4
> Reporter: John M. Wargo
> Assignee: Filip Maj
>
> I had my mac reimaged, so I'm starting fresh on a clean laptop. Installed
> git, node, xcode and when I try to create a project, I get an error that
> there's no index.html file. I checked .cordova/lib/www/2.9.0 and its empty.
> Anyone else experiencing this problem?
> Here's the install output:
> OAKM00524809A:Sample1 i833153$ npm install -g cordova
> npm http GET https://registry.npmjs.org/cordova
> npm http 200 https://registry.npmjs.org/cordova
> npm http GET https://registry.npmjs.org/cordova/-/cordova-2.9.0.tgz
> npm http 200 https://registry.npmjs.org/cordova/-/cordova-2.9.0.tgz
> npm ERR! error rolling back Error: EACCES, unlink '/usr/local/bin/cordova'
> npm ERR! error rolling back [email protected] { [Error: EACCES, unlink
> '/usr/local/bin/cordova'] errno: 3, code: 'EACCES', path:
> '/usr/local/bin/cordova' }
> npm ERR! Error: EACCES, unlink '/usr/local/bin/cordova'
> npm ERR! { [Error: EACCES, unlink '/usr/local/bin/cordova'] errno: 3, code:
> 'EACCES', path: '/usr/local/bin/cordova' }
> npm ERR!
> npm ERR! Please try running this command again as root/Administrator.
> npm ERR! System Darwin 12.4.0
> npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
> npm ERR! cwd /Users/i833153/dev/Sample1
> npm ERR! node -v v0.10.12
> npm ERR! npm -v 1.2.32
> npm ERR! path /usr/local/bin/cordova
> npm ERR! code EACCES
> npm ERR! errno 3
> npm ERR! stack Error: EACCES, unlink '/usr/local/bin/cordova'
> npm ERR!
> npm ERR! Additional logging details can be found in:
> npm ERR! /Users/i833153/dev/Sample1/npm-debug.log
> npm ERR! not ok code 0
> OAKM00524809A:Sample1 i833153$ sudo npm install -g cordova
> Password:
> npm http GET https://registry.npmjs.org/cordova
> npm http 304 https://registry.npmjs.org/cordova
> npm http GET https://registry.npmjs.org/plugman/0.7.14
> npm http GET https://registry.npmjs.org/plist
> npm http GET https://registry.npmjs.org/xcode/0.5.1
> npm http GET https://registry.npmjs.org/express
> npm http GET https://registry.npmjs.org/shelljs/0.1.2
> npm http GET https://registry.npmjs.org/ncallbacks/1.0.0
> npm http GET https://registry.npmjs.org/request
> npm http GET https://registry.npmjs.org/semver/1.1.0
> npm http GET https://registry.npmjs.org/glob
> npm http GET https://registry.npmjs.org/follow-redirects
> npm http GET https://registry.npmjs.org/prompt/0.2.7
> npm http GET https://registry.npmjs.org/ripple-emulator
> npm http GET https://registry.npmjs.org/tar
> npm http GET https://registry.npmjs.org/open/0.0.3
> npm http GET https://registry.npmjs.org/colors
> npm http GET https://registry.npmjs.org/elementtree/0.1.3
> npm http 304 https://registry.npmjs.org/ncallbacks/1.0.0
> npm http 304 https://registry.npmjs.org/xcode/0.5.1
> npm http 304 https://registry.npmjs.org/open/0.0.3
> npm http 304 https://registry.npmjs.org/prompt/0.2.7
> npm http 304 https://registry.npmjs.org/request
> npm http 304 https://registry.npmjs.org/plist
> npm http 304 https://registry.npmjs.org/shelljs/0.1.2
> npm http 200 https://registry.npmjs.org/plugman/0.7.14
> npm http GET https://registry.npmjs.org/plugman/-/plugman-0.7.14.tgz
> npm http 304 https://registry.npmjs.org/elementtree/0.1.3
> npm http 304 https://registry.npmjs.org/ripple-emulator
> npm http 304 https://registry.npmjs.org/glob
> npm http 304 https://registry.npmjs.org/tar
> npm http 304 https://registry.npmjs.org/semver/1.1.0
> npm http 304 https://registry.npmjs.org/colors
> npm http 304 https://registry.npmjs.org/follow-redirects
> npm http 200 https://registry.npmjs.org/express
> npm http 200 https://registry.npmjs.org/plugman/-/plugman-0.7.14.tgz
> npm WARN engine [email protected]: wanted: {"node":"~0.6.7"} (current:
> {"node":"v0.10.12","npm":"1.2.32"})
> npm http GET https://registry.npmjs.org/underscore
> npm http GET https://registry.npmjs.org/sax/0.3.5
> npm http GET https://registry.npmjs.org/minimatch
> npm http GET https://registry.npmjs.org/graceful-fs
> npm http GET https://registry.npmjs.org/inherits
> npm http 304 https://registry.npmjs.org/underscore
> npm http GET https://registry.npmjs.org/range-parser/0.0.4
> npm http GET https://registry.npmjs.org/commander/0.6.1
> npm http GET https://registry.npmjs.org/mkdirp/0.3.3
> npm http GET https://registry.npmjs.org/buffer-crc32/0.1.1
> npm http GET https://registry.npmjs.org/cookie/0.0.5
> npm http GET https://registry.npmjs.org/fresh/0.1.0
> npm http GET https://registry.npmjs.org/methods/0.0.1
> npm http GET https://registry.npmjs.org/send/0.1.0
> npm http GET https://registry.npmjs.org/debug
> npm http GET https://registry.npmjs.org/cookie-signature/0.0.1
> npm http GET https://registry.npmjs.org/connect/2.7.2
> npm http GET https://registry.npmjs.org/revalidator
> npm http GET https://registry.npmjs.org/utile
> npm http GET https://registry.npmjs.org/winston
> npm http GET https://registry.npmjs.org/pkginfo
> npm http GET https://registry.npmjs.org/read
> npm http GET https://registry.npmjs.org/fstream
> npm http GET https://registry.npmjs.org/inherits
> npm http GET https://registry.npmjs.org/block-stream
> npm http 304 https://registry.npmjs.org/sax/0.3.5
> npm http 304 https://registry.npmjs.org/minimatch
> npm http 304 https://registry.npmjs.org/graceful-fs
> npm http 304 https://registry.npmjs.org/inherits
> npm http 304 https://registry.npmjs.org/fresh/0.1.0
> npm http 304 https://registry.npmjs.org/range-parser/0.0.4
> npm http 304 https://registry.npmjs.org/cookie-signature/0.0.1
> npm http 304 https://registry.npmjs.org/cookie/0.0.5
> npm http 304 https://registry.npmjs.org/buffer-crc32/0.1.1
> npm http 304 https://registry.npmjs.org/debug
> npm http 304 https://registry.npmjs.org/send/0.1.0
> npm http 304 https://registry.npmjs.org/methods/0.0.1
> npm http 304 https://registry.npmjs.org/commander/0.6.1
> npm http 200 https://registry.npmjs.org/mkdirp/0.3.3
> npm http 304 https://registry.npmjs.org/revalidator
> npm http 200 https://registry.npmjs.org/connect/2.7.2
> npm http 304 https://registry.npmjs.org/winston
> npm http 304 https://registry.npmjs.org/read
> npm http 304 https://registry.npmjs.org/utile
> npm http 304 https://registry.npmjs.org/pkginfo
> npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.3.tgz
> npm http GET https://registry.npmjs.org/connect/-/connect-2.7.2.tgz
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No readme data.
> npm http 304 https://registry.npmjs.org/block-stream
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> npm http 304 https://registry.npmjs.org/inherits
> npm http 304 https://registry.npmjs.org/fstream
> npm http GET https://registry.npmjs.org/mute-stream
> npm http 200 https://registry.npmjs.org/connect/-/connect-2.7.2.tgz
> npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.3.tgz
> npm http GET https://registry.npmjs.org/lru-cache
> npm http GET https://registry.npmjs.org/sigmund
> npm http GET https://registry.npmjs.org/pegjs/0.6.2
> npm http GET https://registry.npmjs.org/node-uuid/1.3.3
> npm http GET https://registry.npmjs.org/i
> npm http GET https://registry.npmjs.org/async
> npm http GET https://registry.npmjs.org/deep-equal
> npm http GET https://registry.npmjs.org/mkdirp
> npm http GET https://registry.npmjs.org/ncp
> npm http GET https://registry.npmjs.org/rimraf
> npm http GET https://registry.npmjs.org/rimraf
> npm http GET https://registry.npmjs.org/mkdirp
> npm http 304 https://registry.npmjs.org/mute-stream
> npm http 304 https://registry.npmjs.org/sigmund
> npm http 304 https://registry.npmjs.org/lru-cache
> npm http 304 https://registry.npmjs.org/node-uuid/1.3.3
> npm http 304 https://registry.npmjs.org/pegjs/0.6.2
> npm http 304 https://registry.npmjs.org/deep-equal
> npm http 304 https://registry.npmjs.org/async
> npm http 304 https://registry.npmjs.org/i
> npm http 304 https://registry.npmjs.org/ncp
> npm http 200 https://registry.npmjs.org/mkdirp
> npm http 200 https://registry.npmjs.org/rimraf
> npm http 200 https://registry.npmjs.org/mkdirp
> npm http 200 https://registry.npmjs.org/rimraf
> npm http GET https://registry.npmjs.org/cycle
> npm http GET https://registry.npmjs.org/eyes
> npm http GET https://registry.npmjs.org/stack-trace
> npm http 304 https://registry.npmjs.org/eyes
> npm http 304 https://registry.npmjs.org/stack-trace
> npm http 304 https://registry.npmjs.org/cycle
> npm WARN package.json [email protected] No repository field.
> npm http GET https://registry.npmjs.org/nopt
> npm http GET https://registry.npmjs.org/bplist-parser
> npm http GET https://registry.npmjs.org/osenv
> npm http GET https://registry.npmjs.org/ncallbacks/1.1.0
> npm http GET https://registry.npmjs.org/underscore/1.4.4
> npm http GET https://registry.npmjs.org/dep-graph/1.1.0
> npm http 304 https://registry.npmjs.org/ncallbacks/1.1.0
> npm http 304 https://registry.npmjs.org/underscore/1.4.4
> npm http 304 https://registry.npmjs.org/bplist-parser
> npm http 304 https://registry.npmjs.org/osenv
> npm http 304 https://registry.npmjs.org/nopt
> npm http 304 https://registry.npmjs.org/dep-graph/1.1.0
> > [email protected] preinstall
> > /usr/local/lib/node_modules/cordova/node_modules/ripple-emulator
> > node thirdparty/ludicrous.js
> Prepare ship for ludicrous speed!
> Fasten all seatbelts, seal all entrances and exits, close all shops in the
> mall, cancel the three ring circus, secure all animals in the zoo!
> npm http GET https://registry.npmjs.org/moment
> npm http GET https://registry.npmjs.org/express/3.1.0
> npm http GET https://registry.npmjs.org/connect-xcors/0.5.2
> npm http GET https://registry.npmjs.org/accounting
> npm http 304 https://registry.npmjs.org/connect-xcors/0.5.2
> npm http 304 https://registry.npmjs.org/moment
> npm WARN package.json [email protected] No readme data.
> npm http 304 https://registry.npmjs.org/accounting
> npm http 200 https://registry.npmjs.org/express/3.1.0
> npm http GET https://registry.npmjs.org/express/-/express-3.1.0.tgz
> npm http GET https://registry.npmjs.org/xmlbuilder
> npm http GET https://registry.npmjs.org/xmldom
> npm http 200 https://registry.npmjs.org/express/-/express-3.1.0.tgz
> npm http 304 https://registry.npmjs.org/xmlbuilder
> npm http 304 https://registry.npmjs.org/xmldom
> npm http GET https://registry.npmjs.org/mime/1.2.6
> npm http 304 https://registry.npmjs.org/mime/1.2.6
> npm http GET https://registry.npmjs.org/abbrev
> npm http GET https://registry.npmjs.org/underscore/1.2.1
> npm http 304 https://registry.npmjs.org/underscore/1.2.1
> npm http 304 https://registry.npmjs.org/abbrev
> npm http GET https://registry.npmjs.org/formidable/1.0.11
> npm http GET https://registry.npmjs.org/qs/0.5.1
> npm http GET https://registry.npmjs.org/bytes/0.1.0
> npm http GET https://registry.npmjs.org/pause/0.0.1
> npm http 304 https://registry.npmjs.org/qs/0.5.1
> npm http 304 https://registry.npmjs.org/pause/0.0.1
> npm http 304 https://registry.npmjs.org/bytes/0.1.0
> npm http 304 https://registry.npmjs.org/formidable/1.0.11
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> /usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No repository field.
> [email protected] /usr/local/lib/node_modules/cordova
> ├── [email protected]
> ├── [email protected]
> ├── [email protected]
> ├── [email protected]
> ├── [email protected] ([email protected])
> ├── [email protected]
> ├── [email protected] ([email protected], [email protected], [email protected])
> ├── [email protected] ([email protected], [email protected])
> ├── [email protected] ([email protected])
> ├── [email protected] ([email protected], [email protected], [email protected])
> ├── [email protected]
> ├── [email protected] ([email protected], [email protected], [email protected], [email protected],
> [email protected])
> ├── [email protected] ([email protected], [email protected])
> ├── [email protected] ([email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected])
> ├── [email protected] ([email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected],
> [email protected], [email protected], [email protected], [email protected])
> └── [email protected] ([email protected], [email protected],
> [email protected], [email protected])
> Here's the create command output:
> [Error: downloaded www assets in
> /Users/i833153/.cordova/lib/www/cordova/2.9.0/www does not contain
> index.html, or www subdir with index.html]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira