AppiumServiceError 'NodeJS main executable cannot be found. Make sure it is installed and present in PATH' ) E appium.webdriver.appium_service.AppiumServiceError: NodeJS main executable cannot be found. Make sure it is installed and present in PATH

When i try to execute appium getting this error message.

if result is None:

      raise AppiumServiceError(
            'NodeJS main executable cannot be found. Make sure it is installed and present in PATH'
        )

E appium.webdriver.appium_service.AppiumServiceError: NodeJS main executable cannot be found. Make sure it is installed and present in PATH

image

Nodejs installed and able to see in Command prompt

Really not enough information here, but I’m going to guess you are using Eclipse and need to add environment variables:

https://stackoverflow.com/questions/7048216/environment-variables-in-eclipse