"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"
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: [35m[Appium][39m [31mspawn npm ENOENT[39m" Can someone please help me
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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