Appium 安装出现错误

Appium 安装出现错误

我通过以下方式安装 appium:

sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev

安装 linux brew:将以下命令粘贴到终端并按回车键

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
set path for brew

在终端输入:gedit .bashrc,然后将以下内容复制粘贴到 .bashrc 文件中

export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"

安装节点:将以下命令逐个粘贴到终端,然后按回车键

brew update
brew install node
brew link node

安装 appium

npm install -g appium
npm install wd

要启动 appium:将以下命令粘贴到终端并按回车键

appium

显示如下:

naveen@naveen-Inspiron-3542:~$ appium
/usr/bin/env: ‘node’: No such file or directory
naveen@naveen-Inspiron-3542:~$ appium &
[1] 15394
naveen@naveen-Inspiron-3542:~$ /usr/bin/env: ‘node’: No such file or directory

答案1

本教程将帮助所有那些难以在 Ubuntu 机器上安装 appium 服务器的人。 http://steelkiwi.com/blog/setup-environment-mobile-android-app-testing-linux/

并添加 vim .bashrc 此文件并保存

export PATH="$HOME/.linuxbrew/bin:$PATH"

export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"

export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"`

答案2

您可以下载“npm install -g appium-doctor”并运行“appium-doctor --android”,然后您就可以看到您错过了什么。

相关内容