Appium linux 环境下搭建 appium 失败----Appium will not work if used or installed with sudo

先进 · 2014年09月13日 · 最后由 先进 回复于 2014年09月13日 · 1487 次阅读

用 root 权限安装 appium 后运行时就提示
Appium will not work if used or installed with sudo. Please rerun/install as a non-root user. If you had to install Appium using sudo npm install -g appium, the solution is to reinstall Node using a method (Homebrew, for example) that doesn't require sudo to install global npm packages.
网上帖子都看了修复方法都不行,谁实战过?

共收到 5 条回复 时间 点赞

把你的步骤贴出来 我们一步步解决

好吧,把你用 root 装的 appium 和 nodejs 都卸载干净,然后用普通用户安装 nodejs 和 appium,过程中遇到没有权限的问题,直接修改文件的权限

First, DO NOT install nodejs with sudo apt-get or apt-get!!!

Install Nodejs
You should download source code from Nodejs official website. And:
./configure
make
sudo chmod -R 777 /usr/local/
make install
node

Install Appium
npm install -g appium
appium

#1 楼 @lihuazhang 系统环境 ubuntu12.04,node -v v0.10.24 # which node /usr/bin/node
步骤 > npm install -g appium
> npm install wd

#2 楼 @ianxiaohanxu 谢谢,问题解决

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册