如题,在执行安装操作时报如下错误:

[1/2] scripts.install ios-utils@1.0.5 › devicelog@^1.0.2 finished in 2s
[2/2] scripts.install xctestwd@~1.3.4 run "node ./scripts/install.js"
/usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.3.22@xctestwd/scripts/install.js:63
  .then(version => {
   ^

TypeError: doctorIOS.getXcodeVersion(...).then is not a function
    at Object.<anonymous> (/usr/local/lib/node_modules/macaca-ios/node_modules/_xctestwd@1.3.22@xctestwd/scripts/install.js:63:4)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Function.Module.runMain (module.js:690:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:666:3
Install fail! Error: post install error, please remove node_modules before retry!
Run "sh -c node ./scripts/install.js" error, exit code 1
Error: post install error, please remove node_modules before retry!
Run "sh -c node ./scripts/install.js" error, exit code 1
    at ChildProcess.proc.on.code (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:74:21)
    at ChildProcess.emit (events.js:180:13)
    at maybeClose (internal/child_process.js:936:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
npminstall version: 3.3.0
npminstall args: /Users/marco/Development/nodejs/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --china --userconfig=/Users/marco/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -g macaca-ios

@xdf 大佬,求解答,感谢~


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