Macaca [求助] mac macaca doctor 报错,好像是权限问题,怎么解决

tigerwu · 2020年12月16日 · 2503 次阅读

% macaca doctor

/usr/local/lib/node_modules/macaca-cli/node_modules/mkdirp/index.js:91
throw err0;
^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/logs'
at Object.mkdirSync (fs.js:987:3)
at Object.sync as mkdir
at Logger._init (/usr/local/lib/node_modules/macaca-cli/node_modules/xlogger/lib/xlogger.js:44:5)
at new Logger (/usr/local/lib/node_modules/macaca-cli/node_modules/xlogger/lib/xlogger.js:40:8)
at Logger.module.exports.Logger (/usr/local/lib/node_modules/macaca-cli/node_modules/xlogger/lib/xlogger.js:175:10)
at Object. (/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/lib/common/logger.js:9:25)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14) {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/usr/local/lib/node_modules/macaca-cli/node_modules/webdriver-server/logs'
}

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