[ https://issues.apache.org/jira/browse/CB-3813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-3813. --------------------------- Resolution: Unresolved Not sure how we're going to handle the upgrade paths from older version of the tools.. sorry. I think your best bet is to delete your old install of cordova-cli and install the newer tools. The new CLI doesn't try to install anything into sudo-owner directories (unlike the older CLI) so it may get a little confused there. > 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