fix: use cross-platform way of referring to user home directory
MODIFY
lib/extension-config.js
lib/extension-config.js
@@ -2,11 +2,12 @@ import _ from 'lodash';
import log from './logger';
import { fs, mkdirp } from 'appium-support';
import path from 'path';
+import os from 'os';
import YAML from 'yaml';
const DRIVER_TYPE = 'driver';
const PLUGIN_TYPE = 'plugin';
-const DEFAULT_APPIUM_HOME = path.resolve(process.env.HOME, '.appium');
+const DEFAULT_APPIUM_HOME = os.homedir();
const CONFIG_FILE_NAME = 'extensions.yaml';
const CONFIG_SCHEMA_REV = 2;

fix: use cross-platform way of referring to user home directory