Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: The main Appium script does not exist at '/usr/local/lib/node_modules/appium/build/lib/main.js' #1889

Open
1 task done
dakshana-jayakumar opened this issue Apr 18, 2023 · 10 comments · May be fixed by #2123
Open
1 task done
Labels

Comments

@dakshana-jayakumar
Copy link

dakshana-jayakumar commented Apr 18, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Screenshot 2023-04-18 at 2 31 41 PM

Expected Behavior

To run the appium server and the application has to be installed in the android emulator as per the code

Environment

  • Operating system:
  • If running via appium CLI...
    • Appium CLI version (output of appium --version):
    • Node.js version (output of node --version):
    • npm version (output of npm --version):
    • Last appium version which did not exhibit the problem:
  • If running Appium Desktop, its version:
  • Appium driver(s) and their version(s):
  • Appium plugin(s) and their version(s):
  • Platform and version under test:
  • Real device or emulator/simulator:

Link to Appium Logs

No response

Futher Information

No response

@mykola-mokhnach mykola-mokhnach transferred this issue from appium/appium Apr 18, 2023
@mykola-mokhnach
Copy link
Contributor

is the appium server installed? is it installed globally?

@dakshana-jayakumar
Copy link
Author

dakshana-jayakumar commented Apr 18, 2023 via email

@mykola-mokhnach
Copy link
Contributor

where appium's main.js is actually located on your system? have you searched for it inside /usr/local/lib/node_modules?

@dakshana-jayakumar
Copy link
Author

Uploading Screenshot 2023-04-19 at 11.55.28 AM.png…

I think the main.js is not there inside that, couldn't find out where it is exactly located

@mykola-mokhnach
Copy link
Contributor

If it is not there then the server installation is probably broken. Have you tried to run appium from terminal?

@dakshana-jayakumar
Copy link
Author

Screenshot 2023-04-19 at 2 00 25 PM

Yes

@mo00000-stack
Copy link

mo00000-stack commented Apr 21, 2023

I'm having the same issue. Appium works but i cant find main.js any where, therefor cant start the server automatically. did u find any solution ?

@ZuhayrMerchant110
Copy link

Same issue with me did you find any solution to this?

@ZuhayrMerchant110
Copy link

ZuhayrMerchant110 commented May 9, 2023

my issue is it is adding my project directory with main js path e.g project_path/\usr\local\lib\node_modules\appium\build\lib\main.js'

@ZuhayrMerchant110
Copy link

@mykola-mokhnach @dakshana-jayakumar anything on above comment?

Greeley pushed a commit to Greeley/java-client that referenced this issue Feb 20, 2024
According to the NPM man page, npm gets its configuration information from 5 separate sources. When npm is launched on a *nix system without the user shell npm skips any configuration in the user's $HOME as well as ignores environment variables that might be set in the user's profile or environment.

This resolves appium#1889 and @ZuhayrMerchant110's issue as well as mine where the project directory prefixing the appium path.
@Greeley Greeley linked a pull request Feb 20, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants