You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Dan Moore (JIRA)" <ji...@apache.org> on 2013/06/14 19:44:22 UTC
[jira] [Commented] (CB-3813) Can't add android without using sudo
[ https://issues.apache.org/jira/browse/CB-3813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13683585#comment-13683585 ]
Dan Moore commented on CB-3813:
-------------------------------
This doesn't appear to be an issue if you move the ~/.cordova directory away, and let the new cordova command create it (I had recently upgraded from cordova-cli 2.8.14).
> Can't add android without using sudo
> ------------------------------------
>
> Key: CB-3813
> URL: https://issues.apache.org/jira/browse/CB-3813
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.8.0
> Environment: npm 1.2.30
> cordova (cli) 2.8.17
> phonegap 2.8.0
> centos 6
> android sdk tools: 22.0.1
> android build tools: 17
> android platform tools: 17
> /usr/local all owned by me via chown
> Reporter: Dan Moore
> Assignee: Filip Maj
>
> I am unable to create an android project using cordova-cli without using sudo.
> Replication steps:
> 1. cordova create foo
> 2. cd foo
> 3. cordova platform add android
> Expected outcome: see android added to the platforms directory
> Actual outcome: you see an error message and no android directory added
> Error message:
> [Error: An error occured during creation of android sub-project. /bin/sh: /home/username/.cordova/lib/android/cordova/2.8.0/bin/create: No such file or directory
> ]
> Strangely, running this with sudo works:
> sudo env PATH=$PATH cordova platform add android
> I saw this bug: CB-3614 but the error message is different.
--
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