appium在mac的安装目录 [英] installation directory of appium in mac

查看:32
本文介绍了appium在mac的安装目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从 MAC 终端安装了 appium-1.5.1.安装没问题,但由于某种原因我需要安装它的路径.谁能告诉我安装目录在哪里?

I have installed appium-1.5.1 from MAC terminal. The installation is ok but I need the path where it is installed for some reason. Can anyone please tell me where is the installation directory in?

推荐答案

如果您安装了 GUI appium 应用程序(您可以在 Mac 的 Launchpad 中单击其图标的应用程序),那么按照之前的 orde 建议,只需查看 /应用程序/Appium.app

If you installed the GUI appium app (the app whose icon you can click in your Mac's Launchpad), then as orde suggested earlier, just see /Applications/Appium.app

但是如果你说你通过终端安装了 appium,我猜你是使用 npm 安装的.如果您通过键入类似 npm install -g appium 的内容来安装 appium,那么以下所有内容都适合您:

But if you say you installed appium via your terminal, I'm going to take a guess that you installed it using npm. If you installed appium by typing something like npm install -g appium, then all the below is for you:

您可以通过在终端中输入以下内容来找到 appium 可执行文件:

You can find the appium executable by typing this into your terminal:

which appium

在终端中输入这个命令的输出应该是这样的(路径对你来说可能不同):

the output of typing this command in your terminal should be something like this (the path may be different for you):

/usr/local/bin/appium

如果which"为您提供了这样的文件路径,那么该路径就是您的 appium 可执行文件(如果您在终端中键入appium",则会运行该文件).

If 'which' gave you a filepath like this, then this path is your appium executable file (the file that is run if you type 'appium' into your terminal).

如果你想找到appium的实际安装文件,那么就选择你刚刚得到的路径,然后运行以下命令,用你的路径替换我的路径:

If you want to find appium's actual installed files, then take the path you just got above, and run the following command, replacing my path with yours:

ls -l /usr/local/bin/appium

该命令的结果如下所示:

the result of that command will look something like this:

lrwxr-xr-x  1 qamacbook  admin  44 Apr 19 11:07 /usr/local/bin/appium -> ../lib/node_modules/appium/build/lib/main.js

这一行的末尾,在箭头之后,是你的 appium 安装相对于可执行文件的位置.因此,在我的示例中,完整安装位于 /usr/local/lib/node_modules/appium/

the end of this line, after the arrow, is the location of your appium installation relative to the executable file. In my example, the full installation is therefore located at /usr/local/lib/node_modules/appium/

希望能帮到你!

这篇关于appium在mac的安装目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆