Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4269

cordova-cli remove plugin throws a TypeError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Master
    • 3.0.0
    • cordova-cli
    • None

    Description

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

      Attachments

        Activity

          People

            filmaj Filip Maj
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: