Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 855D2FF59 for ; Sun, 2 Jun 2013 02:42:37 +0000 (UTC) Received: (qmail 91714 invoked by uid 500); 2 Jun 2013 02:42:36 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 91686 invoked by uid 500); 2 Jun 2013 02:42:36 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 91657 invoked by uid 99); 2 Jun 2013 02:42:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jun 2013 02:42:36 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fil@adobe.com designates 64.18.1.39 as permitted sender) Received: from [64.18.1.39] (HELO exprod6og117.obsmtp.com) (64.18.1.39) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2013 23:03:56 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob117.postini.com ([64.18.5.12]) with SMTP ID DSNKUap9xmDBvKFBREpRG981jAzJlUckqlpi@postini.com; Sat, 01 Jun 2013 16:03:35 PDT Received: from inner-relay-2.corp.adobe.com ([153.32.1.52]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r51N0GD8028779 for ; Sat, 1 Jun 2013 16:00:16 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r51N3Xw7000064 for ; Sat, 1 Jun 2013 16:03:33 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Sat, 1 Jun 2013 16:03:33 -0700 From: Filip Maj To: "dev@cordova.apache.org" Date: Sat, 1 Jun 2013 16:03:31 -0700 Subject: Re: cordova-cli problems on linux Thread-Topic: cordova-cli problems on linux Thread-Index: Ac5fHD0YcbeiZf/JSBObRrEZoxMDAA== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.4.130416 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Yeah the install script does a check for root user: https://github.com/apache/cordova-cli/blob/master/bootstrap.js#L61 Interesting that that is not working out.. On 5/28/13 10:35 AM, "Don Coleman" wrote: >I re-did the NPM install but didn't see the message. I'll retry on a fresh >machine today. > > >On Tue, May 28, 2013 at 10:25 AM, Braden Shepherdson >wrote: > >> I note also the "macosx" in some paths there. >> >> And isn't there are message during the npm install that warns about >> chmodding that directory? I agree that this sucks and it would be great >>to >> fix it. >> >> Braden >> >> >> On Tue, May 28, 2013 at 8:46 AM, Andrew Grieve >> wrote: >> >> > One hope here is that the problem will go away once we lazily fetch >>the >> > platform repos. >> > >> > >> > On Tue, May 28, 2013 at 12:28 AM, Don Coleman >> > wrote: >> > >> > > "cordova platform add android" was failing on linux with an error >> > > about the android-sdk-macosx >> > > >> > > don@localhost:~/tmp/foo$ cordova platform add android >> > > [Error: An error occured during creation of android sub-project. >> > > BUILD FAILED >> > > >> > > >> > >>=20 >>/usr/local/lib/node_modules/cordova/lib/cordova-android/framework/build.x >>ml:133: >> > > Cannot find /Applications/android-sdk-macosx/tools/ant/build.xml >> > > imported from >> > > >> > >>=20 >>/usr/local/lib/node_modules/cordova/lib/cordova-android/framework/build.x >>ml >> > > >> > > cordova 2.7.4 node 0.10.8 npm 1.2.23 Ubuntu 12.04.2 LTS | crouton | >> > > ChromeOS >> > > >> > > =3D=3D >> > > >> > > The problem was cordova was installed with sudo. >> > > >> > > The eventual solution was to chown -R the cordova npm directory. At >> > > first I tried editing sdk.dir in >> > > >> > > >> > >>=20 >>/usr/local/lib/node_modules/cordova/lib/cordova-android/framework/local.p >>roperties >> > > which seemed like a bad idea. >> > > >> > > CB-2604 says there should have been a warning about a root install >>but >> > > I never got one. >> > > >> > > >> > >>=20 >>https://issues.apache.org/jira/browse/CB-2604?focusedCommentId=3D13637291= &p >>age=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#co= mm >>ent-13637291 >> > > >> > > Thoughts on the best way to handle this? >> > > >> > >>