title: Why do I get "Cannot find module 'stack-trace'" launching Appium Server?
body: <p>I'm using the tutorials on understanding how to install, configure and run Appium. This is what I did: </p>
  
  <ol>
  <li><p>I installed Appiumforwindows version 0.18.0 from <a href="http://appium.io/" rel="nofollow">http://appium.io/</a></p></li>
  <li><p>Started the Appium application</p></li>
  <li><p>Now, I'm presented with the GUI, with three options on the Menu bar:</p></li>
  </ol>
  
  <pre>
  --Preferences
  --Inspector
  --Launch
  </pre>
  
  <p>and various other configuration options.</p>
  
  <p>I'll describe what was configured:</p>
  
  <p>From the Preferences, I checked the following options:</p>
  
  <ul>
  <li>Check for Updates</li>
  <li>Reset Application State After Each Session</li>
  <li>Pre-Launch Application</li>
  </ul>
  
  <p>Also:</p>
  
  <ul>
  <li>IP Address: 127.0.0.1 (as default hostname)</li>
  <li>Port: 4723 (as default)</li>
  <li>Application Path: ..\sdk\build-tools\android-4.4.2 (the location of the APK file I'm looking to test - here, I'm using the dropbox apk)</li>
  </ul>
  
  <p>From the Android Tab, I set up the following:</p>
  
  <ul>
  <li>Package</li>
  <li>Activity</li>
  <li>Launch AVD</li>
  </ul>
  
  <p>The package and activity were obtained from the command prompt by running the below command in the location of the apk file (as described above in the "Application Path":</p>
  
  <pre><code>aapt dump badging xxx.apk (where xxx is filename of the dropbox apk) 
  </code></pre>
  
  <p>Now, after doing all this, when attempting to Launch Appium, I get the following errors in the Output:</p>
  
  <pre><code>&gt;Starting Node Server             
  &gt;ERROR: module.js:340                                 
  &gt;ERROR:   throw err;                    
  &gt;ERROR: Error: Cannot find module 'stack-trace'           
  &gt;ERROR:    at Function.Module._resolveFilename (module.js:338:15)         
  &gt;ERROR:    at Function.Module._load (module.js:280:25)              
  &gt;ERROR:    at Module.require (module.js:364:17)           
  &gt;ERROR:    at require (module.js:380:17)           
  &gt;ERROR:    at Object &lt;anonymous&gt; (..\\Appium\node_modules\winston\lib\winston\exception.js:10:18  
  &gt;ERROR:    at Module.compile(module.js:456:26)                  
  &gt;ERROR:    at Object.Module._extensions.js (module.js:474:10)        
  &gt;ERROR:    at Module.load (module.js:356:32)         
  &gt;ERROR:    at Function.Module._load (module.js:312:12)                  
  &gt;ERROR:    at Module.require (module.js:364:17)             
  &gt;ERROR:                      
  &gt;Node Server Process Ended
  </code></pre>
  
  <p>So, it appears it cannot find the module 'stack-trace' at the various listed areas. Why not? </p>
  
  <p>Doing a search for stack-trace files, resulted in three stack-trace.js files located in the following paths:</p>
  
  <ul>
  <li>\appium\node_modules\sandboxed-module\node_modules</li>
  <li>\appium\node_modules\prompt\node_modules\winston\node_modules</li>
  <li>\appium\node_modules\binary_cookies\node_modules\winston\node_modules</li>
  </ul>
  
  <p>What have I missed out?</p>