Appium 『求助』这是什么问题?

jerryzhang · 2014年02月12日 · 最后由 jerryzhang 回复于 2014年02月12日 · 1238 次阅读

执行 appium 例子报错,如下。请问是什么问题。。。。。。。。。。。

error: uncaughtException: EACCES, permission denied '/usr/local/lib/node_modules/appium/.dumpsys.log' date=Wed Feb 12 2014 16:10:07 GMT+0800 (CST), pid=4223, uid=1000, gid=1000, cwd=/home/jerryzhang, execPath=/usr/local/bin/node, version=v0.11.11-pre, argv=[node, /usr/local/bin/appium, --full-reset], rss=48349184, heapTotal=54227200, heapUsed=27237832, loadavg=[0.3505859375, 0.4384765625, 0.46875], uptime=6694, trace=[column=18, file=fs.js, function=Object.fs.openSync, line=410, method=fs.openSync, native=false, column=15, file=fs.js, function=Object.fs.writeFileSync, line=956, method=fs.writeFileSync, native=false, column=8, file=/usr/local/lib/node_modules/appium/lib/devices/android/adb.js, function=null, line=1047, method=null, native=false, column=5, file=/usr/local/lib/node_modules/appium/lib/devices/android/adb.js, function=null, line=136, method=null, native=false, column=7, file=child_process.js, function=ChildProcess.exithandler, line=694, method=exithandler, native=false, column=17, file=events.js, function=ChildProcess.EventEmitter.emit, line=107, method=EventEmitter.emit, native=false, column=16, file=child_process.js, function=maybeClose, line=817, method=null, native=false, column=5, file=child_process.js, function=Process.ChildProcess._handle.onexit, line=884, method=ChildProcess._handle.onexit, native=false], stack=[Error: EACCES, permission denied '/usr/local/lib/node_modules/appium/.dumpsys.log', at Object.fs.openSync (fs.js:410:18), at Object.fs.writeFileSync (fs.js:956:15), at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:1047:8, at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:136:5, at ChildProcess.exithandler (child_process.js:694:7), at ChildProcess.EventEmitter.emit (events.js:107:17), at maybeClose (child_process.js:817:16), at Process.ChildProcess._handle.onexit (child_process.js:884:5)]

共收到 4 条回复 时间 点赞

权限 permission denied '/usr/local/lib/node_modules/appium/ 把 appium 权限全给上

咋加?怎么操作?能详细说下吗?

#2 楼 @jerryzhang 以前的帖子里有说过,sudo chmod 777 /usr/local/lib/node_modules/appium/

非常感谢。终于把例子调通了。

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