Failed to set appium path in katalon studio

I tried “where appium” command in cmd
it is showing below result

C:\Users\Archana\AppData\Roaming\npm\appium
C:\Users\Archana\AppData\Roaming\npm\appium.cmd

But when I tried “appium -v” it is showing below error
node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module ‘C:\Users\Archana\AppData\Roaming\npm\node_modules\appium\build\lib\main.js’
←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m
←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m at node:internal/main/run_main_module:17:47←[39m {
code: ←[32m’MODULE_NOT_FOUND’←[39m,
requireStack:
}

Hi,

I think you should reinstall Appium as they cannot find it:

  • npm install -g appium && appium -v
  • Make sure you install correct Node js version
  • Check the Appium Path in KS: Window > Katalon Studio Preferences > Katalon > Mobile > Appium
  • Check PATH Environment Variable: Ensure that the directory containing the Appium executable is included in your system’s PATH environment variable. This allows your system to locate the Appium executable when you run the Appium command.

You will likely also have to install a version of appium supported by Katalon Studio instead of the most up to date one unless you want to use the proof of concept one which still has a few issues with it. To do that when installing appium you will need to run

npm install -g appium@1.22.3 

If you install appium 2.0 or above you will need to use a different version of Katalon Studio or use remote execution to run:


@kreno @Elly_Tran I have installed the mentioned version

npm install -g appium@1.22.3.

It is installed and see the cmd log.

But when I run the script it shows the message “No worries. Just upgrade to the Enterprise license to unlock all powerful capabilities” and unable to run

Yeah sorry I am not exactly sure what features are paid features and which ones are free features. It seems weird that running a script shows as a paid feature. Are you making sure to select Android execution when attempting to run the test using the dropdown on the play button?

Hi,

Great to hear that you have been able to install Appium. Please double check this: Trial and Free Plans | Katalon Docs to make sure you are valid with Free plan. If you have passed 30-day-trial or over the acceptable number of quota, you need to pay for more usage. Thank you!

ok. Thanks for the info …my free trial plan expired. I can continue with this account only If I choose a plan right? @Elly_Tran

yes… my free trial expired

Yeah, please consider any plan suitable for you to continue using this acc.