How to setup Appium in Ubuntu for android

前端 未结 9 2232
無奈伤痛
無奈伤痛 2020-11-29 08:28

I am new in appium(automation testing technology).

I\'m using a PC running Ubuntu Linux.

I have searched about this topic but I have not got any

9条回答
  •  暖寄归人
    2020-11-29 09:01

    Do not install nodejs through apt-get, which will need sudo rights and appium will not work if node is installed as sudo user. If you have already installed remove it using

    sudo apt-get remove nodejs
    sudo apt-get remove npm
    

    Download latest nodejs linux binaries form http://nodejs.org/download/

    Extract into a folder that doesn't need sudo rights to access, for example your home folder.

    tar -xvf 
    

    Add the following line to your ~/.bashrc file.

    export PATH=$PATH:/bin
    

    Open a now terminal and do

    npm install -g appium
    appium
    

提交回复
热议问题