You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2014/10/09 16:49:34 UTC

[jira] [Resolved] (CB-7745) platform add fails if plugins/ directly doesn't exist

     [ https://issues.apache.org/jira/browse/CB-7745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-7745.
-------------------------------
    Resolution: Fixed

Fixed in 3.7.1-dev

> platform add fails if plugins/ directly doesn't exist
> -----------------------------------------------------
>
>                 Key: CB-7745
>                 URL: https://issues.apache.org/jira/browse/CB-7745
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> {code}
> cordova create foo
> cd foo
> rm -r plugins platforms
> cordova platform add android
> Error: ENOENT, no such file or directory '/Users/agrieve/git/cordova/mobilespec/plugins/android.json'
>     at Object.fs.openSync (fs.js:432:18)
>     at Object.fs.writeFileSync (fs.js:971:15)
>     at Object.save_platform_json (/Users/agrieve/git/cordova/cordova-lib/cordova-lib/src/plugman/util/config-changes.js:476:8)
>     at PlatformMunger_process [as process] (/Users/agrieve/git/cordova/cordova-lib/cordova-lib/src/plugman/util/config-changes.js:401:13)
>     at Object.exports.process (/Users/agrieve/git/cordova/cordova-lib/cordova-lib/src/plugman/util/config-changes.js:80:12)
>     at Object.handlePrepare (/Users/agrieve/git/cordova/cordova-lib/cordova-lib/src/plugman/prepare.js:72:20)
>     at /Users/agrieve/git/cordova/cordova-lib/cordova-lib/src/cordova/prepare.js:101:25
>     at Array.map (native)
>     at /Users/agrieve/git/cordova/cordova-lib/cordova-lib/src/cordova/prepare.js:65:40
>     at _fulfilled (/Users/agrieve/git/cordova/cordova-lib/cordova-lib/node_modules/q/q.js:798:54)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org