Can’t run a TestNG test on android emu (Mac OS)

I can’t seem to figure out why my android test wont execute. The error is a follows :

io.appium.java_client.service.local.InvalidServerInstanceException: Invalid server instance exception has occured: There is no installed nodes! Please install node via NPM ( or download and install Appium app (

at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(
at io.appium.java_client.service.local.AppiumServiceBuilder.checkAppiumJS(
at io.appium.java_client.service.local.AppiumServiceBuilder.createArgs(
at org.openqa.selenium.remote.service.DriverService$
at io.appium.java_client.service.local.AppiumDriverLocalService.buildService(
at io.appium.java_client.service.local.AppiumDriverLocalService.buildDefaultService(
at Config.DriverFactory.getAndroidDriver(
at AndroidTests.CheckoutTestAndroid.setupSuite(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.testng.internal.MethodInvocationHelper.invokeMethod(
at org.testng.internal.Invoker.invokeConfigurationMethod(
at org.testng.internal.Invoker.invokeConfigurations(
at org.testng.internal.Invoker.invokeConfigurations(
at org.testng.SuiteRunner.privateRun(
at org.testng.SuiteRunnerWorker.runSuite(
at org.testng.TestNG.runSuitesSequentially(
at org.testng.TestNG.runSuitesLocally(
at org.testng.TestNG.runSuites(
at org.testng.RemoteTestNGStarter.main(

at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(
... 25 more

I have installed nodejs via Homebrew and from the website. I have set the Environment variables in the /bash user_profile. I have uninstalled and reinstalled node/npm. I have linked the brew install. I can launch appium server manually and get xpaths from the app via appium.

node – v8.11.1 npm – 5.6.0

Any suggestions?


Double check node installation instructions

Install appium via npm: npm install -g appium

Install & launch appium doctor to check env setup: npm install appium-doctor appium-doctor

You should check output and fix any issues. As for Node.js it should print smth like:

info AppiumDoctor  ✔ The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor  ✔ Node version is 7.9.0

Leave a Reply

Your email address will not be published. Required fields are marked *