{"action":"created","issue":{"url":"https://api.github.com/repos/staltz/mmmmm-mobile/issues/1","repository_url":"https://api.github.com/repos/staltz/mmmmm-mobile","labels_url":"https://api.github.com/repos/staltz/mmmmm-mobile/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/staltz/mmmmm-mobile/issues/1/comments","events_url":"https://api.github.com/repos/staltz/mmmmm-mobile/issues/1/events","html_url":"https://github.com/staltz/mmmmm-mobile/issues/1","id":244327487,"number":1,"title":"Getting error while running 'yarn'","user":{"login":"preetb123","id":4496555,"avatar_url":"https://avatars3.githubusercontent.com/u/4496555?v=4","gravatar_id":"","url":"https://api.github.com/users/preetb123","html_url":"https://github.com/preetb123","followers_url":"https://api.github.com/users/preetb123/followers","following_url":"https://api.github.com/users/preetb123/following{/other_user}","gists_url":"https://api.github.com/users/preetb123/gists{/gist_id}","starred_url":"https://api.github.com/users/preetb123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preetb123/subscriptions","organizations_url":"https://api.github.com/users/preetb123/orgs","repos_url":"https://api.github.com/users/preetb123/repos","events_url":"https://api.github.com/users/preetb123/events{/privacy}","received_events_url":"https://api.github.com/users/preetb123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-07-20T11:17:20Z","updated_at":"2017-07-24T08:24:34Z","closed_at":null,"body":"```\r\n$ yarn\r\nyarn install v0.24.6\r\n[1/4] 🔍  Resolving packages...\r\n[2/4] 🚚  Fetching packages...\r\n[3/4] 🔗  Linking dependencies...\r\n[4/4] 📃  Building fresh packages...\r\n[7/9] ⢀ utf-8-validate\r\n[8/9] ⢀ react-native-ssb-client\r\n[3/9] ⢀ fsevents\r\n[4/9] ⢀ leveldown: prebuild-install info unpacking @ /Users/preetam/.npm/_prebuilds/https-github.com-level-leveldown-relea\r\nwarning Error running install script for optional dependency: \"/Users/preetam/practice/mmmmm-mobile/node_modules/thread-sleep: Command failed.\\nExit code: 7\\nCommand: sh\\nArguments: -c node-pre-gyp install --fallback-to-build\\nDirectory: /Users/preetam/practice/mmmmm-mobile/node_modules/thread-sleep\\nOutput:\\nnode-pre-gyp info it worked if it ends with ok\\nnode-pre-gyp info using node-pre-gyp@0.6.9\\nnode-pre-gyp info using node@8.0.0 | darwin | x64\\nnode-pre-gyp info check checked for \\\"/Users/preetam/practice/mmmmm-mobile/node_modules/thread-sleep/lib/binding/Release/node-v57-darwin-x64/thread_sleep.node\\\" (not found)\\nnode-pre-gyp http GET https://node-pre-gyp-forbeslindesay.s3.amazonaws.com/thread_sleep/v1.0.4/Release/thread_sleep-v1.0.4-node-v57-darwin-x64.tar.gz\\nnode-pre-gyp ERR! UNCAUGHT EXCEPTION \\nnode-pre-gyp ERR! stack Error: Cannot find module 'internal/fs'\\nnode-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:485:15)\\nnode-pre-gyp ERR! stack     at Function.Module._load (module.js:437:25)\\nnode-pre-gyp ERR! stack     at Module.require (module.js:513:17)\\nnode-pre-gyp ERR! stack     at require (internal/module.js:11:18)\\nnode-pre-gyp ERR! stack     at evalmachine.<anonymous>:40:20\\nnode-pre-gyp ERR! stack     at Object.<anonymous> (/Users/preetam/practice/mmmmm-mobile/node_modules/thread-sleep/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)\\nnode-pre-gyp ERR! stack     at Module._compile (module.js:569:30)\\nnode-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:580:10)\\nnode-pre-gyp ERR! stack     at Module.load (module.js:503:32)\\nnode-pre-gyp ERR! stack     at tryModuleLoad (module.js:466:12)\\nnode-pre-gyp ERR! System Darwin 16.6.0\\nnode-pre-gyp ERR! command \\\"/usr/local/Cellar/node/8.0.0_1/bin/node\\\" \\\"/Users/preetam/practice/mmmmm-mobile/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp\\\" \\\"install\\\" \\\"--fallback-to-bu[-/9] ⠄ waiting...\r\n[8/9] ⠄ react-native-ssb-client\r\n[-/9] ⠄ waiting...\r\n[-/9] ⠄ waiting...\r\nerror /Users/preetam/practice/mmmmm-mobile/node_modules/react-native-scuttlebot: Command failed.\r\nExit code: 1\r\nCommand: sh\r\nArguments: -c node patch-scuttlebot.js && node insert-bundle.js && cd ../../ && react-native link react-native-node\r\nDirectory: /Users/preetam/practice/mmmmm-mobile/node_modules/react-native-scuttlebot\r\nOutput:\r\n/Users/preetam/practice/mmmmm-mobile/node_modules/noderify/bin.js:4163\r\n                if (pkg.main) {\r\n                       ^\r\n\r\nTypeError: Cannot read property 'main' of undefined\r\n    at /Users/preetam/practice/mmmmm-mobile/node_modules/noderify/bin.js:4163:24\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:490:3)\r\nchild_process.js:611\r\n    throw err;\r\n    ^\r\n\r\nError: Command failed: /Users/preetam/practice/mmmmm-mobile/node_modules/react-native-scuttlebot/node_modules/.bin/noderify --replace.chloride=sodium-browserify-tweetnacl --replace.sodium-chloride=sodium-browserify-tweetnacl --replace.node-extend=xtend --replace.leveldown=memdown /Users/preetam/practice/mmmmm-mobile/node_modules/react-native-scuttlebot/ssb-peer.js > /Users/preetam/practice/mmmmm-mobile/node_modules/react-native-scuttlebot/bundle.js\r\n/Users/preetam/practice/mmmmm-mobile/node_modules/noderify/bin.js:4163\r\n                if (pkg.main) {\r\n                       ^\r\n\r\nTypeError: Cannot read property 'main' of undefined\r\n    at /Users/preetam/practice/mmmmm-mobile/node_modules/noderify/bin.js:4163:24\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:490:3)\r\n\r\n    at checkExecSyncError (child_process.js:568:13)\r\n    at execSync (child_process.js:608:13)\r\n    at Object.<anonymous> (/Users/preetam/practice/mmmmm-mobile/node_modules/react-native-scuttlebot/insert-bundle.js:25:1)\r\n    at Module._compile (module.js:569:30)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:503:32)\r\n    at tryModuleLoad (module.js:466:12)\r\n    at Function.Module._load (module.js:458:3)\r\n    at Function.Module.runMain (module.js:605:10)\r\n    at startup (bootstrap_node.js:158:16)\r\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\r\n```"},"comment":{"url":"https://api.github.com/repos/staltz/mmmmm-mobile/issues/comments/317353097","html_url":"https://github.com/staltz/mmmmm-mobile/issues/1#issuecomment-317353097","issue_url":"https://api.github.com/repos/staltz/mmmmm-mobile/issues/1","id":317353097,"user":{"login":"staltz","id":90512,"avatar_url":"https://avatars3.githubusercontent.com/u/90512?v=4","gravatar_id":"","url":"https://api.github.com/users/staltz","html_url":"https://github.com/staltz","followers_url":"https://api.github.com/users/staltz/followers","following_url":"https://api.github.com/users/staltz/following{/other_user}","gists_url":"https://api.github.com/users/staltz/gists{/gist_id}","starred_url":"https://api.github.com/users/staltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staltz/subscriptions","organizations_url":"https://api.github.com/users/staltz/orgs","repos_url":"https://api.github.com/users/staltz/repos","events_url":"https://api.github.com/users/staltz/events{/privacy}","received_events_url":"https://api.github.com/users/staltz/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T08:24:34Z","updated_at":"2017-07-24T08:24:34Z","body":"That error happens when running `fs.statSync`, I would suspect it's because you're using node v8.0.0. I recommend node v6.10 or v6.11 since these are LTS."}}
{"actor":{"display_login":"staltz"}}