Code Monkey home page Code Monkey logo

Comments (8)

mykola-mokhnach avatar mykola-mokhnach commented on May 31, 2024

Make sure the Node.JS is up to date (we advice the latest LTS)
Then reinstall the server. To cleanup installed drivers it is necessary to delete the $HOME/.appium folder

from appium.

ErodriguezQA avatar ErodriguezQA commented on May 31, 2024

I just did all of that but i'm getting the same output.

This is the output of node -v:
v20.11.0

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on May 31, 2024

Please provide the full server log

from appium.

ErodriguezQA avatar ErodriguezQA commented on May 31, 2024
[Appium] Welcome to Appium v2.4.1 (REV 1c612baa096c69f2fcb221c74e6f5b9979efdcee)
[Appium] The autodetected Appium home path: /Users/qalified/.appium
[Appium] Attempting to load driver xcuitest...
[Appium] Requiring driver at /Users/qalified/.appium/node_modules/appium-xcuitest-driver/build/index.js
[Appium] Could not load driver 'xcuitest', so it will not be available. Error in loading the driver was: require() of ES Module /Users/qalified/node_modules/chalk/source/index.js from /Users/qalified/node_modules/@babel/code-frame/lib/index.js not supported.
[Appium] Instead change the require of /Users/qalified/node_modules/chalk/source/index.js in /Users/qalified/node_modules/@babel/code-frame/lib/index.js to a dynamic import() which is available in all CommonJS modules.
[Appium] Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/qalified/node_modules/chalk/source/index.js from /Users/qalified/node_modules/@babel/code-frame/lib/index.js not supported.
[Appium] Instead change the require of /Users/qalified/node_modules/chalk/source/index.js in /Users/qalified/node_modules/@babel/code-frame/lib/index.js to a dynamic import() which is available in all CommonJS modules.
[Appium]     at Object.<anonymous> (/Users/qalified/node_modules/@babel/code-frame/lib/index.js:9:38)
[Appium]     at Object.<anonymous> (/Users/qalified/node_modules/parse-json/index.js:5:28)
[Appium]     at Object.<anonymous> (/Users/qalified/node_modules/read-pkg/index.js:5:19)
[Appium]     at Object.<anonymous> (/Users/qalified/node_modules/@appium/support/build/lib/fs.js:18:36)
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
[Appium] 	http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] 	http://192.168.1.4:4723/
[Appium] 	http://169.254.56.213:4723/
[Appium] 	http://169.254.134.8:4723/
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'XCUITest')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> POST /session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}}
[AppiumDriver@3da1] Calling AppiumDriver.createSession() with args: [{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"appium:udid":"00008101-00053094213A001E","appium:bundleId":"com.gia.dev2021","appium:deviceName":"iPhone equipo técnico","platformName":"iOS","appium:automationName":"XCUITest","appium:xcodeOrgId":"6U86FCFMS3","appium:xcodeSigningId":"iPhone Developer","appium:updatedWDABundleId":"qalified.WebDriverAgentRunnerQalified","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}]
[AppiumDriver@3da1] Event 'newSessionRequested' logged at 1706027596840 (13:33:16 GMT-0300 (Uruguay Standard Time))
[Appium] Attempting to find matching driver for automationName 'XCUITest' and platformName 'iOS'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/qalified/.appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /Users/qalified/.appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@3da1] Event 'newSessionStarted' logged at 1706027596846 (13:33:16 GMT-0300 (Uruguay Standard Time))
[AppiumDriver@3da1] Encountered internal error running command: Error: Could not find a driver for automationName 'XCUITest' and platformName 'iOS'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: require() of ES Module /Users/qalified/node_modules/chalk/source/index.js from /Users/qalified/node_modules/@babel/code-frame/lib/index.js not supported.
[AppiumDriver@3da1] Instead change the require of /Users/qalified/node_modules/chalk/source/index.js in /Users/qalified/node_modules/@babel/code-frame/lib/index.js to a dynamic import() which is available in all CommonJS modules.)
[AppiumDriver@3da1]     at DriverConfig.findMatchingDriver (/opt/homebrew/lib/node_modules/appium/lib/extension/driver-config.js:175:13)
[AppiumDriver@3da1]     at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:644:11)
[HTTP] <-- POST /session 500 23 ms - 1646
[HTTP] 

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on May 31, 2024

Something is wrong with your local node deployment. I see the server is installed in /opt/homebrew/lib/node_modules/, while drivers are in /Users/qalified/.appium/node_modules/

So it is not clear why it tries to load anything from /Users/qalified/node_modules. Are you sure the above folder is needed?

from appium.

ErodriguezQA avatar ErodriguezQA commented on May 31, 2024

Yes, i have seen that on the logs. What happened is that this laptop had installed a node version through Homebrew and that was causing conflicts with some applications. I used brew uninstall node to get rid of it and installed node from other source, installing it on '/usr/local/bin/node'. Do i have to do some extra steps to delete the Homebrew version of it?

from appium.

jlipps avatar jlipps commented on May 31, 2024

Does /Users/qalified/node_modules exist? If so, just delete it. NPM will resolve packages in parent directories sometimes.

from appium.

ErodriguezQA avatar ErodriguezQA commented on May 31, 2024

That did the trick! Thank you very much!

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.