title: Can't use protractor - spawn protractor ENOENT
body: <p>I want to run tests for a project, using Windows 10.
  The tests spawn <code>protractor</code>, which errors:</p>
  
  <blockquote>
    <p>Error: spawn protractor ENOENT</p>
  </blockquote>
  
  <p>I tried to do everything that might solve it, including:</p>
  
  <ul>
  <li>Adding <code>chromeOnly</code> to config</li>
  <li>Adding <code>directConnect</code> to config</li>
  <li>Adding <code>System32</code> to path</li>
  <li>Adding <code>JDK/.bin</code> and <code>JRE/.bin</code> to path</li>
  </ul>
  
  <p>I still get this error when trying to spawn protractor.</p>
  
  <p>Versions:</p>
  
  <ul>
  <li>Node: v6.9.1</li>
  <li>Protractor: v2.5.1 (also tried v5.1.1)</li>
  </ul>
  
  <p>Source code: <a href="https://github.com/driftyco/ionic/blob/master/scripts/gulp/tasks/snapshot.ts#L80" rel="nofollow noreferrer">https://github.com/driftyco/ionic/blob/master/scripts/gulp/tasks/snapshot.ts#L80</a></p>