Encountered internal error running command: TypeError: Cannot read property 'forceStop' of undefined

Hey everyone, has anyone run into this when running Appium on a real Android device?
I am not sure what is causing it and I am not finding much information on this and what I have found and tried doesnt seem to resolve the issue :frowning:

> [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/jenkins/workspace/lead-functional-testing-Android/bin/Dev5/LC-3.3-master.apk","noReset":true,"platformVersion":"5.0.2","automationName":"Appium","platformName":"Android","deviceName":"09319b58"}}
> [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/jenkins/wor...
> [Appium] Creating new AndroidDriver session
> [Appium] Capabilities:
> [Appium]   app: '/Users/jenkins/workspace/lead-functional-testing-Android/bin/Dev5/LC-3.3-master.apk'
> [Appium]   noReset: true
> [Appium]   platformVersion: '5.0.2'
> [Appium]   automationName: 'Appium'
> [Appium]   platformName: 'Android'
> [Appium]   deviceName: '09319b58'
> [BaseDriver] Session created with session id: 2578ec53-5ac7-40a4-991e-82078b1d96c7
> [debug] [AndroidDriver] Getting Java version
> [AndroidDriver] Java version is: 1.8.0_101
> [ADB] Checking whether adb is present
> [debug] [AndroidDriver] Shutting down Android driver
> [debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active
> [MJSONWP] Encountered internal error running command: TypeError: Cannot read property 'forceStop' of undefined
>     at AndroidDriver.deleteSession$ (lib/driver.js:354:19)
>     at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
>     at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
>     at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
>     at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

Thanks @wreed I was able to resolve this by running “npm install -g appium --no-shrinkwrap” in the end.