{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/macaca/issues/60","repository_url":"https://api.github.com/repos/alibaba/macaca","labels_url":"https://api.github.com/repos/alibaba/macaca/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/macaca/issues/60/comments","events_url":"https://api.github.com/repos/alibaba/macaca/issues/60/events","html_url":"https://github.com/alibaba/macaca/issues/60","id":156943761,"number":60,"title":"Error spawn node_modules/macaca-cli/node_modules/.bin/mocha ENOENT","user":{"login":"markshao","id":1078081,"avatar_url":"https://avatars.githubusercontent.com/u/1078081?v=3","gravatar_id":"","url":"https://api.github.com/users/markshao","html_url":"https://github.com/markshao","followers_url":"https://api.github.com/users/markshao/followers","following_url":"https://api.github.com/users/markshao/following{/other_user}","gists_url":"https://api.github.com/users/markshao/gists{/gist_id}","starred_url":"https://api.github.com/users/markshao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markshao/subscriptions","organizations_url":"https://api.github.com/users/markshao/orgs","repos_url":"https://api.github.com/users/markshao/repos","events_url":"https://api.github.com/users/markshao/events{/privacy}","received_events_url":"https://api.github.com/users/markshao/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alibaba/macaca/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T09:39:28Z","updated_at":"2016-05-26T10:36:09Z","closed_at":null,"body":"<!--\r\nThanks for wanting to report an issue you've found in Macaca. Please fill in the template below by replacing the html comments with an appropriate answer.\r\n\r\nMacaca Version: usually output of `macaca -v`\r\nMacaca Doctor: usually output of `macaca doctor`\r\nPlatform: either `uname -a` output, or if Windows, version and 32 or 64-bit.\r\n\r\nThank you!\r\n-->\r\n\r\n* **Macaca Version**: \r\n\r\n> 1.0.34\r\n\r\n* **Macaca Doctor**:\r\n`node env: /usr/local/bin/node\r\n  node version: v6.2.0\r\n\r\n  iOS checklist:\r\n\r\n  Xcode is installed at: `/Applications/Xcode.app/Contents/Developer`\r\n  Xcode Command Line Tools is ready, version: 2343.\r\n  Command Line Tools: ios_webkit_debug_proxy is uninstalled\r\n\r\n  Android checklist:\r\n\r\n  JAVA version is `1.8.0_91`\r\n  JAVA_HOME is set to `/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home`\r\n  ANDROID_HOME is set to `/Users/cesc/Library/Android/sdk`\r\n  Platforms is set to `/Users/cesc/Library/Android/sdk/platforms/android-23`\r\n  Android tools is set to `/Users/cesc/Library/Android/sdk/tools/android`\r\n\r\n  Installed driver list:\r\n\r\n  android: 1.0.11`\r\n\r\n* **Platform**:\r\n\r\n> OSX 10.11.5\r\n\r\n\r\n<!-- Enter your issue details and log as much information as possible below this comment. -->\r\n1. git clone the sample project macaca-test-sample\r\n2. The device Samsung S5 is plugged with the machine, and the adb detect the connection OK.\r\n3. Run the command under the macaca-test-sample folder \r\n\r\n> platform=android ./node_modules/macaca-cli/bin/macaca-cli run --verbose -d ./macaca-test/macaca-mobile-sample.test.js\r\n\r\nGet the error message as following:\r\n\r\n`>> index.js:79:12 [master] pid:9778 webdriver server start with config:\r\n { port: 3456,\r\n  window: true,\r\n  ip: '10.12.142.58',\r\n  host: 'cesc-MacBook-Pro.local',\r\n  loaded_time: '2016-05-26 17:35:01' }\r\n>> middlewares.js:30:10 [master] pid:9778 base middlewares attached\r\n>> router.js:118:10 [master] pid:9778 router set\r\n>> webdriver sdk launched\r\n>> macaca-cli-run:89:10 [master] pid:9778 Error: spawn /Users/cesc/spk/github/macacajs/macaca-test-sample/node_modules/macaca-cli/node_modules/.bin/mocha ENOENT\r\n    at exports._errnoException (util.js:953:11)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)\r\n    at onErrorNT (internal/child_process.js:348:16)\r\n    at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n>> Test completed!`\r\n\r\n#54 "},"comment":{"url":"https://api.github.com/repos/alibaba/macaca/issues/comments/221836567","html_url":"https://github.com/alibaba/macaca/issues/60#issuecomment-221836567","issue_url":"https://api.github.com/repos/alibaba/macaca/issues/60","id":221836567,"user":{"login":"xudafeng","id":1011681,"avatar_url":"https://avatars.githubusercontent.com/u/1011681?v=3","gravatar_id":"","url":"https://api.github.com/users/xudafeng","html_url":"https://github.com/xudafeng","followers_url":"https://api.github.com/users/xudafeng/followers","following_url":"https://api.github.com/users/xudafeng/following{/other_user}","gists_url":"https://api.github.com/users/xudafeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xudafeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xudafeng/subscriptions","organizations_url":"https://api.github.com/users/xudafeng/orgs","repos_url":"https://api.github.com/users/xudafeng/repos","events_url":"https://api.github.com/users/xudafeng/events{/privacy}","received_events_url":"https://api.github.com/users/xudafeng/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T10:36:09Z","updated_at":"2016-05-26T10:36:09Z","body":"初步判断是 npm 版本兼容性不好造成的"}}
{"actor":{"display_login":"xudafeng"}}