'MODULE_NOT_FOUND' error on trying to install Appium from source

Hi All,

I am trying to run appium from source by the below mentioned command.

git clone https://github.com/appium/appium.git
cd appium
npm install
npm run build
node .

On trying entering the last command “node .” i see the error ‘MODULE_NOT_FOUND’ .Below is the completed logs from terminal.

raja.subudhi@YFYTXJ24VR appium % node .
throw err;

Error: Cannot find module ‘/Users/raja.subudhi/Desktop/appium-source/appium’
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
requireStack: []

Node.js v18.11.0

Please provide some insight for the same for the work around?

@wreed @Aleksei Please provide an insight to resolve the above issue?

@wreed @mykola-mokhnach Please help here,how to resolve this issue?

Why do you run node? Just use an appropriate npm task if you want to run appium. E.g. npm run to get the list of available tasks, npm run appium to run appium after build

Thought to try to install from source till the time the next release available in NPM with the #17666 fix.
No worries will try with NPM later.Thnaks @mykola-mokhnach