环境:Appium for mac,python 开发环境
问题描述:在通过 appium-doctor 检测通过后, 仍无法启动。用户权限也提升到了 root 级别 LovetekiMac:/ love$
python
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
D
LovetekiMac:/ love$ node -v
v0.10.30
LovetekiMac:/ love$ npm -v
1.4.21
LovetekiMac:/ love$ wd -v
LovetekiMac:/ love$ appium -v
1.2.1
LovetekiMac:/ love$ appium-doctor
Running iOS Checks
✔ Xcode is installed at /Applications/Xcode.app/Contents/Developer
✔ Xcode Command Line Tools are installed.
✔ DevToolsSecurity is enabled.
✔ The Authorization DB is set up properly.
✔ Node binary found at /usr/local/bin/node
✔ iOS Checks were successful.
Running Android Checks
✔ ANDROID_HOME is set to "/Users/love/Desktop/eclipse/android"
✔ JAVA_HOME is set to "/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home."
✔ ADB exists at /Users/love/Desktop/eclipse/android/platform-tools/adb
✔ Android exists at /Users/love/Desktop/eclipse/android/tools/android
✔ Emulator exists at /Users/love/Desktop/eclipse/android/tools/emulator
✔ Android Checks were successful.
✔ All Checks were successful
LovetekiMac:/ love$ appium &
[1] 1350
LovetekiMac:/ love$ error: 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.