[MAC M1] Error While Launching Appium Pragmatically but it started Manual hitting the command

—ONLY WITH M1— :frowning: :frowning: Help please

Appium was getting stared when I hit appium Command In terminal But while starting from server I’m getting below Error.

Exception in thread “main” io.appium.java_client.service.local.InvalidServerInstanceException: Invalid server instance exception has occured: There is no installed nodes! Please install node via NPM (https://www.npmjs.com/package/appium#using-node-js ) or download and install Appium app (http://appium.io/downloads.html )

First image shows command line. Everything looks good!

Second image is misleading. You forgot to mention that you are using Eclipse. Error is that Eclipse is not picking up Environment Variables, which is a fairly common problem. You will have to set them manually:

https://stackoverflow.com/questions/49853506/how-to-set-environment-variables-for-java

Thank you very much for your prompt response!
I solved the problem adding the location of node and appium in my appium initialization.

1 Like