When trying to install Appium on an Ubuntu-based stack, it fails with the following error message:
error: Cannot find module '/root/.nvm/versions/node/v14.9.0/lib/node_modules/appium/node_modules/appium-windows-driver/install-npm.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org install: `node install-npm.js`
npm ERR! Exit status 1
npm ERR! Failed at the email@example.com install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-02T14_29_43_275Z-debug.log
Error running command install -g firstname.lastname@example.org: exit status 1
The issue is related to a Windows driver which does not work on an Ubuntu stack.
Bitrise does not have a Windows stack so you will have to find an appropriate driver to install.
Please note that while many Bitrise users are able to run Appium on their builds successfully, Bitrise does not officially support Appium.