Installing Node.js and Appium
Mac and Linux
-
Download the Node.js
.tar.gzfile for your OS from https://nodejs.org/en/download/. -
Copy the downloaded file to the
~/robustest/tools/folder. -
Extract the archive:
tar -xzf <filename>.tar.gz -
Delete the tar file, then rename the extracted folder to
node. -
Add Node.js to your PATH:
PATH=$PATH:~/robustest/tools/node/bin -
Install Appium:
npm install -g appiumIf Appium is already installed, uninstall it first:
npm uninstall -g appium npm install -g appium -
In the
setEnvironment.shfile, in the node section, ensure that the path to the Node.js folder is correct.
Windows
-
Download the Node.js Windows installer (
.msi) from https://nodejs.org/en/download/. -
Run the installer. When prompted for the destination folder, change it to:
C:\Users\<username>\robustest\tools\nodeCreate the
nodefolder insiderobustest\tools\if it does not exist. -
Add Node.js to the
PATHenvironment variable:- Search for env in the Windows search bar → Edit the system environment variables.
- Click Environment Variables.
- Under User Variables, select the
PATHvariable and click Edit. - Click New and enter:
C:\Users\<username>\robustest\tools\node - Click OK on all windows, then restart your computer.
-
Open an elevated PowerShell session and install Appium:
npm install -g appium
