MacBook-Pro:~ xxx$ npm i macaca-android --save
android-unicode@1.0.11 install /Users/xxx/node_modules/android-unicode
node ./script/build.js
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
Buildfile: /Users/xxx/node_modules/android-unicode/build.xml
BUILD FAILED
/Users/xxx/node_modules/android-unicode/build.xml:81: Cannot find /Users/xxx/Library/Android/sdk/tools/ant/build.xml imported from /Users/xxx/node_modules/android-unicode/build.xml
Total time: 0 seconds
Error: build failed
at ChildProcess. (/Users/xxx/node_modules/ant-build/lib/ant-build.js:111:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
/Users/xxx/node_modules/android-unicode/script/build.js:15
throw e;
^
Error: build failed
at ChildProcess. (/Users/xxx/node_modules/ant-build/lib/ant-build.js:111:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm WARN enoent ENOENT: no such file or directory, open '/Users/xxx/package.json'
npm WARN xxx No description
npm WARN xxx No repository field.
npm WARN xxx No README data
npm WARN xxx No license field.
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "macaca-android" "--save"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! android-unicode@1.0.11 install: node ./script/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the android-unicode@1.0.11 install script 'node ./script/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the android-unicode package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./script/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs android-unicode
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls android-unicode
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/xxx/npm-debug.log
==============macaca doctor=================
macaca-doctor version: 1.0.28
Node.js checklist:
node env: /usr/local/bin/node
node version: v6.10.2
iOS checklist:
Xcode is installed at: /Library/Developer/CommandLineTools
Xcode Command Line Tools is ready, version: 2347.
iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy
ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
Android checklist:
JAVA version is 1.8.0_65
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
ANDROID_HOME is set to /Users/xxx/Library/Android/sdk
Platforms is set to /Users/xxx/Library/Android/sdk/platforms/android-24
Android tools is set to /Users/xxx/Library/Android/sdk/tools/android
ADB tool is set to /Users/xxx/Library/Android/sdk/platform-tools/adb
Installed driver list:
空