Introduction:
Appium is open source automation framework used to automate mobile tests which supports all type of applications like hybrid, native, web for both mobile platforms Android & iOS.
This automation framework supports almost all languages like Java, PHP, Ruby, C#, Python, JavaScript and many more.
Here we will see various ways to install Appium on Ubuntu.
Install Appium ( Nodejs through apt-get )
Step 1 : Update the Ubuntu packages if available any.
sudo apt-get update
Step 2 : Install the NodeJs
sudo apt-get install nodejs
Step 3 : Install the Npm
sudo apt-get install npm
Step 4 : Install the Appium
npm install -g appium or npm install -g [email protected]
Step 5 : Verify the Appium version
appium --version
Install Appium ( Without Nodejs )
Appium installation with Nodejs requires sudo rights if node is installed as Sudo user. So to avoid that we have to install it with alternate way.
We have to download Nodejs binaries and install it again.
Step 1 : Remove existing NodeJs / Npm installation.
sudo apt-get remove nodejs
sudo apt-get remove npm
Step 2 : Download the NodeJs binaries. Click on the button to download.
Step 3 : Browse to the downloaded file node-v14.4.0-linux-x64.tar.gz path and move it to path /usr/local
cd Downloads sudo mv node-v14.4.0-linux-x64.tar.gz /usr/local cd /usr/local tar --strip-components -1 -xzf /usr/local/node-v14.4.0-linux-x64.tar.gz
Step 4 : Verify the node npm installation.
which node node -v which npm npm -v
Step 5 : Verify Java installation.
java -version
If Java is installed then you will get java version console output.
Else if java is not installed then refer the following blog and install Java – Download / Install Java ( Ubuntu )
Step 6 : Install appium
npm install -g appium
Where -g option is used to install appium globally.
Once installation is completed use the following command and check verfiy the version.
appium --version
appium -v
Check Similar Blogs :
Download / Install Java ( Ubuntu )
Download / Install Appium ( Windows )
Hope this information was helpful to you.
Feel free to comment if you face any issues or have any doubts.