title: TestCafe: Cannot read property 'message' of undefined
body: <p>When running Jenkins on Ubuntu 18.04.  Using the Alpine node container, I've attempted doing something like this below.  </p>
  
  <p>I'm getting the message </p>
  
  <pre><code>TypeError: Cannot read property 'message' of undefined
      at /var/jenkins_home/workspace/LP_Sandbox_EricTestsPiplineCmds/node_modules/browserstack-local/lib/Local.js:57:50
  </code></pre>
  
  <p><a href="https://github.com/DevExpress/testcafe-browser-provider-browserstack/issues/27" rel="nofollow noreferrer">Note:  I believe I've adhered to what was reported in this Github issue</a></p>
  
  <p>Here's the pipeline snippet I'm using.  Any help is much welcome.
  Thanks in advance!</p>
  
  <pre><code>pipeline {
      agent {
          docker { image 'node:8.11.3-alpine' }
      }
  
      stages {
  
          stage('Test') {
              steps {
  
                  sh '''
                      node --version
                      npm install testcafe testcafe-reporter-xunit
                      npm install testcafe-browser-provider-browserstack
                      export BROWSERSTACK_USE_AUTOMATE=1
                      export BROWSERSTACK_USERNAME=XXXX
                      export BROWSERSTACK_ACCESS_KEY=YYYYY
                      export BROWSERSTACK_PARALLEL_RUNS=33
                      ./node_modules/.bin/testcafe "browserstack:chrome@67.0:OS X High Sierra" -S -s $WORKSPACE/screenshots tests/lp.js -e --parallel-runs=33 -r xunit:res.xml
                      '''
              }
          }
  
      }
  </code></pre>
  
  <p>EDIT:  I think I am able to reproduce this locally using these steps running docker: My steps:</p>
  
  <ol>
  <li><code>git clone https://github.com/thomasleveil/docker-testcafe.git</code></li>
  <li>Modify the Dockerfile to add: <code>testcafe-browser-provider-browserstack \</code> to the list of nom packages</li>
  <li><p>add these environment variables:</p>
  
  <ul>
  <li><code>ENV BROWSERSTACK_USE_AUTOMATE=1</code></li>
  <li><code>ENV BROWSERSTACK_USERNAME=XXXX</code></li>
  <li><code>ENV BROWSERSTACK_ACCESS_KEY=XXXX</code></li>
  <li><code>ENV BROWSERSTACK_PARALLEL_RUNS=1</code></li>
  </ul></li>
  <li><p>Build the docker image  following the <code>Building the docker image</code> steps in the README. </p></li>
  <li><p>Run <code>docker run --rm -it -v /Users/esherman/Code/testcafe_lp:/testcafe_lp tomdesinto/testcafe:latest testcafe "browserstack:chrome@67.0:OS X High Sierra" '/testcafe_lp/tests/*.js' -e</code></p></li>
  <li><p>After step 3, the same error occurs.  Hope it’s helpful! </p></li>
  </ol>