You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/07/16 16:30:48 UTC

[jira] [Created] (CB-4269) cordova-cli remove plugin throws a TypeError

Shazron Abdullah created CB-4269:
------------------------------------

             Summary: cordova-cli remove plugin throws a TypeError
                 Key: CB-4269
                 URL: https://issues.apache.org/jira/browse/CB-4269
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI
    Affects Versions: Master
            Reporter: Shazron Abdullah
            Assignee: Filip Maj
             Fix For: 3.0.0


Tested using master.

$ ../cordova-cli/bin/cordova plugin remove org.apache.cordova.core.console
[TypeError: Object function uninstallPlugin(platform, project_dir, id, plugins_dir, options, callback) {
    if (!platform_modules[platform]) {
        var err = new Error(platform + " not supported.");
        if (callback) return callback(err);
        else throw err;
    }

    var plugin_dir = path.join(plugins_dir, id);

    if (!fs.existsSync(plugin_dir)) {
        var err = new Error('Plugin "' + id + '" not found. Already uninstalled?');
        if (callback) return callback(err);
        else throw err;
    }

    var current_stack = new action_stack();

    options.is_top_level = true;
    runUninstall(current_stack, platform, project_dir, plugin_dir, plugins_dir, options, callback);
} has no method 'uninstallPlatform']

--
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