{"action":"created","issue":{"url":"https://api.github.com/repos/wechaty/wechaty/issues/67","repository_url":"https://api.github.com/repos/wechaty/wechaty","labels_url":"https://api.github.com/repos/wechaty/wechaty/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/wechaty/wechaty/issues/67/comments","events_url":"https://api.github.com/repos/wechaty/wechaty/issues/67/events","html_url":"https://github.com/wechaty/wechaty/issues/67","id":186119086,"number":67,"title":"在cloud9中运行wechaty报错","user":{"login":"lijiarui","id":6419514,"avatar_url":"https://avatars.githubusercontent.com/u/6419514?v=3","gravatar_id":"","url":"https://api.github.com/users/lijiarui","html_url":"https://github.com/lijiarui","followers_url":"https://api.github.com/users/lijiarui/followers","following_url":"https://api.github.com/users/lijiarui/following{/other_user}","gists_url":"https://api.github.com/users/lijiarui/gists{/gist_id}","starred_url":"https://api.github.com/users/lijiarui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijiarui/subscriptions","organizations_url":"https://api.github.com/users/lijiarui/orgs","repos_url":"https://api.github.com/users/lijiarui/repos","events_url":"https://api.github.com/users/lijiarui/events{/privacy}","received_events_url":"https://api.github.com/users/lijiarui/received_events","type":"User","site_admin":false},"labels":[{"id":367767329,"url":"https://api.github.com/repos/wechaty/wechaty/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-30T05:57:33Z","updated_at":"2016-10-30T14:42:34Z","closed_at":"2016-10-30T12:16:44Z","body":"steps:\r\n\r\n1.click the button you gave in readme to open in cloud9\r\n\r\n2.install node in cloud9:\r\n\r\n```\r\ncurl https://raw.githubusercontent.com/creationix/nvm/v0.11.1/install.sh | bash\r\nnvm install 6\r\nsudo apt-get update\r\n```\r\n\r\n3.run wechaty:\r\n\r\n```\r\nnpm install\r\nnpm run demo\r\n```\r\n\r\nencounter following error message：\r\n\r\n> INFO Wechaty v#git[461dc84 code clean] initializing...\r\n> WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64), retry ttl: 2\r\n> WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64), retry ttl: 1\r\n> WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64), retry ttl: 0\r\n> ERR PuppetWebBrowserDriver getChromeDriver() exception: WebDriverError: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n>     at WebDriverError (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/error.js:27:5)\r\n>     at Object.checkLegacyResponse (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/error.js:505:15)\r\n>     at parseHttpResponse (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/http.js:398:13)\r\n>     at doSend.then.response (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/http.js:330:11)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n> From: Task: WebDriver.createSession()\r\n>     at Function.createSession (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/webdriver.js:366:24)\r\n>     at Driver (/home/ubuntu/workspace/node_modules/selenium-webdriver/chrome.js:716:38)\r\n>     at Builder.build (/home/ubuntu/workspace/node_modules/selenium-webdriver/index.js:554:16)\r\n>     at BrowserDriver.<anonymous> (/home/ubuntu/workspace/src/puppet-web/browser-driver.ts:125:24)\r\n>     at throw (native)\r\n>     at rejected (/home/ubuntu/workspace/src/puppet-web/browser-driver.ts:5:62)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7), retry ttl: -1\r\n> ERR PuppetWebBrowser init() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> WARN PuppetWebBrowser quit() exception: Cannot read property 'close' of undefined\r\n> WARN PuppetWebBrowser driver.quit() exception: Cannot read property 'close' of undefined\r\n> ERR PuppetWeb initBrowser() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> ERR PuppetWeb init() exception: WebDriverError: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n>     at WebDriverError (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/error.js:27:5)\r\n>     at Object.checkLegacyResponse (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/error.js:505:15)\r\n>     at parseHttpResponse (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/http.js:398:13)\r\n>     at doSend.then.response (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/http.js:330:11)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n> From: Task: WebDriver.createSession()\r\n>     at Function.createSession (/home/ubuntu/workspace/node_modules/selenium-webdriver/lib/webdriver.js:366:24)\r\n>     at Driver (/home/ubuntu/workspace/node_modules/selenium-webdriver/chrome.js:716:38)\r\n>     at Builder.build (/home/ubuntu/workspace/node_modules/selenium-webdriver/index.js:554:16)\r\n>     at BrowserDriver.<anonymous> (/home/ubuntu/workspace/src/puppet-web/browser-driver.ts:125:24)\r\n>     at throw (native)\r\n>     at rejected (/home/ubuntu/workspace/src/puppet-web/browser-driver.ts:5:62)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n> WARN PuppetWeb quit() without a bridge\r\n> WARN PuppetWebBrowser quit() exception: Cannot read property 'close' of undefined\r\n> WARN PuppetWebBrowser driver.quit() exception: Cannot read property 'close' of undefined\r\n> ERR Wechaty init() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> ERR Bot init() fail: WebDriverError: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> WARN PuppetWeb quit() without a bridge\r\n> \r\n> npm ERR! Linux 4.2.0-c9\r\n> npm ERR! argv \"/home/ubuntu/.nvm/versions/node/v6.9.1/bin/node\" \"/home/ubuntu/.nvm/versions/node/v6.9.1/bin/npm\" \"run\" \"demo\"\r\n> npm ERR! node v6.9.1\r\n> npm ERR! npm  v3.10.8\r\n> npm ERR! code ELIFECYCLE\r\n> npm ERR! wechaty@0.5.0 demo: `ts-node example/ding-dong-bot.ts`\r\n> npm ERR! Exit status 255\r\n> npm ERR! \r\n> npm ERR! Failed at the wechaty@0.5.0 demo script 'ts-node example/ding-dong-bot.ts'.\r\n> npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n> npm ERR! If you do, this is most likely a problem with the wechaty package,\r\n> npm ERR! not with npm itself.\r\n> npm ERR! Tell the author that this fails on your system:\r\n> npm ERR!     ts-node example/ding-dong-bot.ts\r\n> npm ERR! You can get information on how to open an issue for this project with:\r\n> npm ERR!     npm bugs wechaty\r\n> npm ERR! Or if that isn't available, you can get their info via:\r\n> npm ERR!     npm owner ls wechaty\r\n> npm ERR! There is likely additional logging output above.\r\n> \r\n> npm ERR! Please include the following file with any support request:\r\n> npm ERR!     /home/ubuntu/workspace/npm-debug.log\r\n> \r\n\r\n\r\n\r\nthen I tried following steps to install:\r\n\r\n1.I thought maybe I didn't install google-chrome, then I test as follows:\r\n\r\n```\r\nlijiarui:~/workspace (master) $ google-chrome --version\r\nbash: google-chrome: command not found\r\n```\r\n\r\nthen , I run your script: \"install-chrome-linux.sh \"\r\n\r\n```\r\nlijiarui:~/workspace/script (master) $ bash install-chrome-linux.sh \r\n...\r\nBuilding dependency tree       \r\nReading state information... Done\r\nE: Unable to locate package google-chrome-stable\r\ninstall-chrome-linux.sh: line 12: google-chrome: command not found\r\n```\r\n\r\nIt seems I failed to install chrome, then I tried following steps to install chrome:\r\n\r\n```\r\nsudo apt-get update\r\nsudo apt-get install libxss1 libappindicator1 libindicator7\r\nwget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb\r\nsudo dpkg -i google-chrome*.deb\r\nsudo apt-get install -f\r\n```\r\n\r\nIt seems success:\r\n\r\n```\r\nlijiarui:~/workspace/script (master) $ google-chrome --version\r\nGoogle Chrome 54.0.2840.71 \r\n```\r\n\r\nthen \" npm run demo\"\r\n\r\noccurs the same  I have showed above...\r\n\r\n2.I guess maybe  I should set headless right for Xvfb\r\nthen I run your script \"xvfb.sh \" \r\n\r\n```\r\nlijiarui:~/workspace/script (master) $ bash xvfb.sh \r\n...\r\nProcessing triggers for libc-bin (2.19-0ubuntu6.6) ...\r\nXvfb installed\r\nexport DISPLAY=:99.0\r\nXvfb started\r\n\r\nexport DISPLAY=:99.0\r\nXvfb ready.\r\nlijiarui:~/workspace/script (master) $ export DISPLAY=:99.0\r\n```\r\n\r\nthen \" npm run demo\"\r\n\r\noccurs the same  I have showed above...\r\n\r\n\r\n\r\nAt last  I open the log to run demo , error log as follows:\r\n\r\n> SILL StateMonitor constructor(Wechaty, standby)\r\n> VERB Wechaty contructor()\r\n> VERB Wechaty on(login, function)\r\n> VERB Wechaty on(logout, function)\r\n> VERB Wechaty on(error, function)\r\n> VERB Wechaty on(scan, function)\r\n> VERB Wechaty on(message, function)\r\n> INFO Wechaty v#git[461dc84 code clean] initializing...\r\n> VERB Wechaty puppet: web\r\n> VERB Wechaty head: chrome\r\n> VERB Wechaty profile: demo.wechaty.json\r\n> VERB Wechaty uuid: 9720caa0-ddd2-4828-8f54-c112c95f0de2\r\n> SILL StateMonitor Wechaty.state.current() is standby\r\n> SILL StateMonitor constructor(Puppet, dead)\r\n> VERB PuppetWeb init() with head:chrome, profile:demo.wechaty.json\r\n> VERB StateMonitor Puppet.state.target(live) from dead\r\n> VERB StateMonitor Puppet.state.current(live,false) from (dead,true)\r\n> VERB UtilLib getPort(18788)\r\n> VERB UtilLib getPort(18788) return: 19103\r\n> VERB PuppetWeb init() getPort 19103\r\n> VERB PuppetWeb initServer()\r\n> SILL StateMonitor Puppet.state.target() is live\r\n> VERB PuppetWebServer init() on port 19103\r\n> VERB PuppetWebServer createHttpsServer() listen on port 19103\r\n> VERB PuppetWeb initServer() done\r\n> VERB PuppetWeb initBrowser()\r\n> SILL StateMonitor constructor(Browser, close)\r\n> VERB PuppetWebBrowser constructor() with head(chrome) sessionFile(demo.wechaty.json)\r\n> VERB PuppetWebBrowserDriver constructor(chrome)\r\n> VERB PuppetWebBrowserCookie constructor(BrowserDriver, demo.wechaty.json)\r\n> SILL StateMonitor Puppet.state.target() is live\r\n> VERB StateMonitor Browser.state.target(open) from close\r\n> VERB StateMonitor Browser.state.current(open,false) from (close,true)\r\n> VERB PuppetWebBrowserDriver init() for head: chrome\r\n> VERB PuppetWebBrowserDriver getChromeDriver()\r\n> VERB PuppetWebBrowserDriver getChromeDriver() wechaty in docker confirmed(should not show this in CI)\r\n> VERB PuppetWebBrowserDriver getChromeDriver() with ttl: 2\r\n> SILL PuppetWebBrowserDriver valid()\r\n> WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64), retry ttl: 2\r\n> VERB PuppetWebBrowserDriver getChromeDriver() with ttl: 1\r\n> SILL PuppetWebBrowserDriver valid()\r\n> WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64), retry ttl: 1\r\n> VERB PuppetWebBrowserDriver getChromeDriver() with ttl: 0\r\n> SILL PuppetWebBrowserDriver valid()\r\n> WARN PuppetWebBrowserDriver getChromeDriver() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64), retry ttl: 0\r\n> ERR PuppetWebBrowserDriver getChromeDriver() exception: WebDriverError: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n>     at WebDriverError (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/error.js:27:5)\r\n>     at Object.checkLegacyResponse (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/error.js:505:15)\r\n>     at parseHttpResponse (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/http.js:398:13)\r\n>     at doSend.then.response (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/http.js:330:11)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n> From: Task: WebDriver.createSession()\r\n>     at Function.createSession (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/webdriver.js:366:24)\r\n>     at Driver (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/chrome.js:716:38)\r\n>     at Builder.build (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/index.js:554:16)\r\n>     at BrowserDriver.<anonymous> (/home/ubuntu/workspace/wechaty/src/puppet-web/browser-driver.ts:125:24)\r\n>     at throw (native)\r\n>     at rejected (/home/ubuntu/workspace/wechaty/src/puppet-web/browser-driver.ts:5:62)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7), retry ttl: -1\r\n> ERR PuppetWebBrowser init() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> VERB StateMonitor Browser.state.current(close,true) from (open,false)\r\n> VERB PuppetWebBrowser quit()\r\n> SILL StateMonitor Browser.state.current() is close\r\n> SILL StateMonitor Browser.state.inprocess() is false\r\n> VERB StateMonitor Browser.state.current(close,false) from (close,true)\r\n> WARN PuppetWebBrowser quit() exception: Cannot read property 'close' of undefined\r\n> WARN PuppetWebBrowser driver.quit() exception: Cannot read property 'close' of undefined\r\n> VERB StateMonitor Browser.state.current(close,true) from (close,false)\r\n> ERR PuppetWeb initBrowser() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> ERR PuppetWeb init() exception: WebDriverError: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n>     at WebDriverError (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/error.js:27:5)\r\n>     at Object.checkLegacyResponse (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/error.js:505:15)\r\n>     at parseHttpResponse (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/http.js:398:13)\r\n>     at doSend.then.response (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/http.js:330:11)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n> From: Task: WebDriver.createSession()\r\n>     at Function.createSession (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/lib/webdriver.js:366:24)\r\n>     at Driver (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/chrome.js:716:38)\r\n>     at Builder.build (/home/ubuntu/workspace/wechaty/node_modules/selenium-webdriver/index.js:554:16)\r\n>     at BrowserDriver.<anonymous> (/home/ubuntu/workspace/wechaty/src/puppet-web/browser-driver.ts:125:24)\r\n>     at throw (native)\r\n>     at rejected (/home/ubuntu/workspace/wechaty/src/puppet-web/browser-driver.ts:5:62)\r\n>     at process._tickDomainCallback (internal/process/next_tick.js:129:7)\r\n> VERB PuppetWeb quit()\r\n> SILL StateMonitor Puppet.state.current() is live\r\n> SILL PuppetWebWatchdog onFeed: 60000, POISON:[PuppetWeb.quit()]\r\n> SILL StateMonitor Puppet.state.current() is live\r\n> SILL PuppetWebWatchdog clearWatchDogTimer() nothing to clear\r\n> SILL PuppetWebWatchdog setWatchDogTimer(60000, POISON:[PuppetWeb.quit()])\r\n> SILL PuppetWebWatchdog monitorScan(POISON)\r\n> SILL PuppetWebWatchdog autoSaveSession()\r\n> SILL PuppetWebWatchdog memoryCheck() free: 4209 MB, require: 16 MB\r\n> SILL PuppetWebWatchdog clearWatchDogTimer() [60] seconds left\r\n> VERB StateMonitor Puppet.state.current(dead,false) from (live,false)\r\n> WARN PuppetWeb quit() without a bridge\r\n> VERB PuppetWebServer quit()\r\n> VERB PuppetWebServer closing socketServer\r\n> VERB PuppetWebServer closing httpsServer\r\n> VERB PuppetWeb quit() server.quit() this.server = null\r\n> VERB PuppetWebBrowser quit()\r\n> SILL StateMonitor Browser.state.current() is close\r\n> SILL StateMonitor Browser.state.inprocess() is false\r\n> VERB StateMonitor Browser.state.current(close,false) from (close,true)\r\n> WARN PuppetWebBrowser quit() exception: Cannot read property 'close' of undefined\r\n> WARN PuppetWebBrowser driver.quit() exception: Cannot read property 'close' of undefined\r\n> VERB StateMonitor Browser.state.current(close,true) from (close,false)\r\n> VERB PuppetWeb quit() server.quit() this.browser = null\r\n> VERB StateMonitor Puppet.state.current(dead,true) from (dead,false)\r\n> VERB PuppetWeb quit() done\r\n> VERB StateMonitor Puppet.state.current(dead,true) from (dead,true)\r\n> ERR Wechaty init() exception: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> ERR Bot init() fail: WebDriverError: unknown error: no chrome binary at /wechaty/bin/xvfb-chromium\r\n>   (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-c9 x86_64)\r\n> VERB Wechaty quit()\r\n> VERB StateMonitor Wechaty.state.current(standby,true) from (standby,true)\r\n> VERB PuppetWeb quit()\r\n> SILL StateMonitor Puppet.state.current() is dead\r\n> SILL StateMonitor Puppet.state.inprocess() is false\r\n> SILL PuppetWebWatchdog onFeed: 60000, POISON:[PuppetWeb.quit()]\r\n> SILL StateMonitor Puppet.state.current() is dead\r\n> SILL StateMonitor Puppet.state.inprocess() is false\r\n> SILL PuppetWebWatchdog clearWatchDogTimer() nothing to clear\r\n> SILL PuppetWebWatchdog setWatchDogTimer(60000, POISON:[PuppetWeb.quit()])\r\n> SILL PuppetWebWatchdog monitorScan(POISON)\r\n> SILL PuppetWebWatchdog autoSaveSession()\r\n> SILL PuppetWebWatchdog memoryCheck() free: 4208 MB, require: 16 MB\r\n> SILL PuppetWebWatchdog clearWatchDogTimer() [60] seconds left\r\n> VERB StateMonitor Puppet.state.current(dead,false) from (dead,true)\r\n> WARN PuppetWeb quit() without a bridge\r\n> VERB PuppetWebServer quit()\r\n> \r\n> npm ERR! Linux 4.2.0-c9\r\n> npm ERR! argv \"/home/ubuntu/.nvm/versions/node/v6.9.1/bin/node\" \"/home/ubuntu/.nvm/versions/node/v6.9.1/bin/npm\" \"run\" \"ts-node\" \"example/ding-dong-bot.ts\"\r\n> npm ERR! node v6.9.1\r\n> npm ERR! npm  v3.10.8\r\n> npm ERR! code ELIFECYCLE\r\n> npm ERR! wechaty@0.5.0 ts-node: `ts-node \"example/ding-dong-bot.ts\"`\r\n> npm ERR! Exit status 255\r\n> npm ERR! \r\n> npm ERR! Failed at the wechaty@0.5.0 ts-node script 'ts-node \"example/ding-dong-bot.ts\"'.\r\n> npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n> npm ERR! If you do, this is most likely a problem with the wechaty package,\r\n> npm ERR! not with npm itself.\r\n> npm ERR! Tell the author that this fails on your system:\r\n> npm ERR!     ts-node \"example/ding-dong-bot.ts\"\r\n> npm ERR! You can get information on how to open an issue for this project with:\r\n> npm ERR!     npm bugs wechaty\r\n> npm ERR! Or if that isn't available, you can get their info via:\r\n> npm ERR!     npm owner ls wechaty\r\n> npm ERR! There is likely additional logging output above.\r\n> \r\n> npm ERR! Please include the following file with any support request:\r\n> npm ERR!     /home/ubuntu/workspace/wechaty/script/npm-debug.log\r\n> \r\n\r\n\r\n\r\n\r\nNeed your help badly....\r\nThanks.."},"comment":{"url":"https://api.github.com/repos/wechaty/wechaty/issues/comments/257155004","html_url":"https://github.com/wechaty/wechaty/issues/67#issuecomment-257155004","issue_url":"https://api.github.com/repos/wechaty/wechaty/issues/67","id":257155004,"user":{"login":"zixia","id":1361891,"avatar_url":"https://avatars.githubusercontent.com/u/1361891?v=3","gravatar_id":"","url":"https://api.github.com/users/zixia","html_url":"https://github.com/zixia","followers_url":"https://api.github.com/users/zixia/followers","following_url":"https://api.github.com/users/zixia/following{/other_user}","gists_url":"https://api.github.com/users/zixia/gists{/gist_id}","starred_url":"https://api.github.com/users/zixia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixia/subscriptions","organizations_url":"https://api.github.com/users/zixia/orgs","repos_url":"https://api.github.com/users/zixia/repos","events_url":"https://api.github.com/users/zixia/events{/privacy}","received_events_url":"https://api.github.com/users/zixia/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T14:42:34Z","updated_at":"2016-10-30T14:42:34Z","body":"This is mostly like caused by `shm` size not enough, it's an `out of memory` error. you can see here:\r\nhttps://github.com/elgalu/docker-selenium/issues/20#issuecomment-132967581\r\n\r\nIt's not recommended to run wechaty inside cloud9 anymore because the following 2 reasons:\r\n1. the TOS of cloud9 ide is not permitted any bot to run on IDE9. wechaty is a bot, so wechaty is not permitted run on IDE9.\r\n1. the SHM size of cloud9 has only 64MB:  \r\n        ```shell\r\n        zixia:~/workspace (master) $ df -h\r\n        Filesystem                Size  Used Avail Use% Mounted on\r\n        shm                        64M  512K   64M   1% /dev/shm\r\n        ```\r\n\r\nUse wechaty docker(see #66) when possible instead, it will run better than any other choice. "}}
{"actor":{"display_login":"zixia"}}