sudo su 切换 root 后用 npm i -g macaca-cli 安装完,执行 macaca doctor 报下面的错
看上去是权限问题,但是在 root 下也报错,不应该在 root 下安装吗?不是 root 下好像也装不上
/usr/local/lib/node_modules/macaca-cli/node_modules/.0.5.1@mkdirp/index.js:90
throw err0;
^
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/macaca-cli/logs'
at Error (native)
at Object.fs.mkdirSync (fs.js:916:18)
at Object.sync as mkdir
at Logger._init (/usr/local/lib/node_modules/macaca-cli/node_modules/.1.0.6@xlogger/lib/xlogger.js:44:5)
at new Logger (/usr/local/lib/node_modules/macaca-cli/node_modules/.1.0.6@xlogger/lib/xlogger.js:40:8)
at Object. (/usr/local/lib/node_modules/macaca-cli/node_modules/.1.0.6@xlogger/lib/xlogger.js:172:18)
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)