[求助] mac macaca doctor 報錯,好像是許可權問題,怎麼解決

tigerwu發表於2020-12-16

% 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'
}

相關文章