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

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

问题描述

我已经从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中单击其图标的应用程序),则按照之前的建议,请参见/Applications/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

如果哪个"为您提供了这样的文件路径,则该路径是您的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/

希望有帮助!

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

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