java-client icon indicating copy to clipboard operation
java-client copied to clipboard

"io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 127.0.0.1] Process output: �[35m[Appium]�[39m �[31mspawn npm ENOENT�[39m"

Open RucheeSadani opened this issue 2 years ago • 20 comments

I am trying to run appium programatically for which below is the code snippet that I have written

AppiumDriverLocalService service = new AppiumServiceBuilder().withAppiumJS(new File("//usr//local//lib//node_modules//appium//build//lib//main.js"))
	.withIPAddress("127.0.0.1").usingPort(4723).build();
	service.start();
	//Create object of Android driver
	UiAutomator2Options options = new UiAutomator2Options();

And below is the error :
"io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 127.0.0.1] Process output: [35m[Appium][39m [31mspawn npm ENOENT[39m" Can someone please help me

RucheeSadani avatar Jan 27 '23 17:01 RucheeSadani