You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/03/18 16:30:15 UTC
[jira] [Reopened] (CB-2702) "cordova platform add android" cannot
find cordova-2.5.0.js file at the specified path.
[ https://issues.apache.org/jira/browse/CB-2702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj reopened CB-2702:
---------------------------
Ooo, I see the issue. Your "global install" location is one that I have no accounted for. Currently the conditional checks that the location starts with {{/usr/local}}, but your location is {{/opt/local}}. I will need to change the following conditional:
process.env.npm_config_prefix.indexOf('/usr/local') === 0
> "cordova platform add android" cannot find cordova-2.5.0.js file at the specified path.
> ---------------------------------------------------------------------------------------
>
> Key: CB-2702
> URL: https://issues.apache.org/jira/browse/CB-2702
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.5.0
> Environment: OSX
> Reporter: Philippe Lang
> Assignee: Filip Maj
> Fix For: 2.5.0
>
>
> Hi, when trying to add the android platform into my cordova 2.5 project tree, here is what I get:
> [MacBook-Pro-de-Philippe-Lang crfr]$ cordova platform add ios android
> [Error: An error occured during creation of android sub-project. cp: /opt/local/lib/node_modules/cordova/lib/cordova-android/framework/assets/www/cordova-2.5.0.js: No such file or directory
> An unexpected error occurred: cp "$BUILD_PATH"/framework/assets/www/cordova-$VERSION.js "$PROJECT_PATH"/assets/www/cordova-$VERSION.js exited with 1
> Deleting project...
> ]
> A closer look at this showed me that the needed file is actually here:
> /opt/local/lib/node_modules/cordova/lib/cordova-android/framework/assets/js/cordova-android.js
--
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