HeminWon-Extranet:~ Hm$ npm install -g appium
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
/usr/local/lib
└── appium@1.6.3


HeminWon-Extranet:~ Hm$ appium
Error: dlopen(/usr/local/lib/node_modules/appium/node_modules/sqlite3/lib/binding/node-v48-darwin-x64/node_sqlite3.node, 1): no suitable image found. Did find:
/usr/local/lib/node_modules/appium/node_modules/sqlite3/lib/binding/node-v48-darwin-x64/node_sqlite3.node: truncated mach-o error: segment __TEXT extends to 1601536 which is past end of file 114176
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (../../lib/certificate.js:5:32)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (../../lib/utils.js:7:36)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (../../lib/simulator-xcode-6.js:7:23)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)

这是安装成功么?

后经过多次尝试,通过使用代理安装 appium解决 appium@1.6.3 安装问题,以下是安装成功后

HeminWon-Extranet:~ Hm$ appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723


↙↙↙阅读原文可查看相关链接,并与作者交流