title: Vanilla Script vs npm Run Script Causing Webdriver Issues
body: <p>I've recently installed the <code>protractor-flake</code> package in order to rerun failed tests a certain amount of times through Protractor.</p>
  
  <p>If I run the following command through the command line:</p>
  
  <p><code>protractor-flake --parser standard  --max-attempts=3 -- .\\protractor.conf.js</code></p>
  
  <p>Everything works as intended. In order to make this process a bit easier for other developers, I also wanted to add a script to my <code>package.json</code> file like so:</p>
  
  <pre><code>"scripts": {
      "flake": "protractor-flake --parser standard  --max-attempts=3 -- .\\protractor.conf.js"
  }
  </code></pre>
  
  <p>However, when I run <code>npm run flake</code>, I instead begin receiving errors regarding <code>webdriver</code>:</p>
  
  <pre><code>&gt; cce@0.0.1 flake C:\..\..\Console
  &gt; protractor-flake --parser standard  --max-attempts=3 -- .\protractor.conf.js
  
  [13:01:18] W/driverProviders - Using driver provider directConnect, but also found extra driver provider parameter(s): seleniumAddress
  [13:01:18] I/launcher - Running 1 instances of WebDriver
  [13:01:18] I/direct - Using ChromeDriver directly...
  [13:01:18] E/direct - Error code: 135
  [13:01:18] E/direct - Error message: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
  [13:01:18] E/direct - Error: Could not find update-config.json. Run 'webdriver-manager update' to download binaries.
      at IError ...
  [13:01:18] E/launcher - Process exited with error code 135
  </code></pre>
  
  <p>Running <code>webdriver-manager update</code> I receive the following:</p>
  
  <pre><code>(node:5432) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EPERM: operation not permitted, rename 'C:\..\..\..\chromedriver.exe' -&gt; 'C:\..\..\..\chromedriver_2.32.exe'
  </code></pre>
  
  <p>Why would running the same script through <code>npm</code> yield different results? Also, does anyone know how to solve the <code>EPERM</code> issue with <code>webdriver-manager update</code> ?</p>
  
  <p>Thanks</p>