fix(appium): when updating extensions, make sure to actually remove the previous one first to avoid npm reinstall issues
MODIFY
packages/appium/lib/cli/extension-command.js
packages/appium/lib/cli/extension-command.js
@@ -483,6 +483,7 @@ export default class ExtensionCommand {
*/
async updateExtension (ext, version) {
const {pkgName} = this.config.installedExtensions[ext];
+ await fs.rimraf(this.config.getInstallPath(ext));
const extData = await this.installViaNpm({ext, pkgName, pkgVer: version});
delete extData[`${this.type}Name`];
await this.config.updateExtension(ext, extData);

fix(appium): when updating extensions, make sure to actually remove the previous one first to avoid npm reinstall issues