title: ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook Error: Appium exited before timeout (exit code: 1) - Appium using emulator in VSCode
body: <p>When trying to run I'm having the log below as <code>ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook Error: Appium exited before timeout (exit code: 1)</code></p>
  <p>package.json :</p>
  <p>{
  &quot;name&quot;: &quot;test2&quot;,</p>
  <p>&quot;version&quot;: &quot;1.0.0&quot;,</p>
  <p>&quot;description&quot;: &quot;&quot;,</p>
  <p>&quot;main&quot;: &quot;index.js&quot;,</p>
  <p>&quot;scripts&quot;: {</p>
  <pre><code>&quot;test&quot;: &quot;./node_modules/.bin/wdio wdio.conf.js&quot;  
  </code></pre>
  <p>},</p>
  <p>&quot;keywords&quot;: [],</p>
  <p>&quot;author&quot;: &quot;&quot;,</p>
  <p>&quot;license&quot;: &quot;ISC&quot;,</p>
  <p>&quot;dependencies&quot;: {</p>
  <pre><code>&quot;@wdio/cli&quot;: &quot;^7.3.1&quot;
  </code></pre>
  <p>},</p>
  <p>&quot;devDependencies&quot;: {</p>
  <pre><code>&quot;@wdio/appium-service&quot;: &quot;^7.3.1&quot;,
  
  &quot;@wdio/local-runner&quot;: &quot;^7.3.1&quot;,
  
  &quot;@wdio/mocha-framework&quot;: &quot;^7.3.1&quot;,
  
  &quot;@wdio/spec-reporter&quot;: &quot;^7.3.1&quot;,
  
  &quot;@wdio/sync&quot;: &quot;^7.3.1&quot;,
  
  &quot;chromedriver&quot;: &quot;^89.0.0&quot;,
  
  &quot;wdio-chromedriver-service&quot;: &quot;^7.0.0&quot;
  </code></pre>
  <p>}</p>
  <p>}</p>