appium / appium/java-client

"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
#1,851 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

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: [Appium] spawn npm ENOENT" Can someone please help me

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with AppiumServiceBuilder and AppiumDriverLocalService, using the provided appium JavaScript path, Node.js executable path, and spawn npm ENOENT output as the reproduction details. Trace local server startup and its error handling; done would require a confirmed diagnosis and a regression test or documented correction for this startup failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, node.js
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.