{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/5806","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/5806/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/5806/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/5806/events","html_url":"https://github.com/facebook/react-native/issues/5806","id":132028631,"number":5806,"title":"react-native init fails with syntax error","user":{"login":"vitaminwater","id":2032595,"avatar_url":"https://avatars.githubusercontent.com/u/2032595?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaminwater","html_url":"https://github.com/vitaminwater","followers_url":"https://api.github.com/users/vitaminwater/followers","following_url":"https://api.github.com/users/vitaminwater/following{/other_user}","gists_url":"https://api.github.com/users/vitaminwater/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaminwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaminwater/subscriptions","organizations_url":"https://api.github.com/users/vitaminwater/orgs","repos_url":"https://api.github.com/users/vitaminwater/repos","events_url":"https://api.github.com/users/vitaminwater/events{/privacy}","received_events_url":"https://api.github.com/users/vitaminwater/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-08T00:28:19Z","updated_at":"2016-02-08T01:41:26Z","closed_at":null,"body":"node: v5.5.0\r\nnpm: 3.3.12\r\nreact-native-cli: 0.1.10\r\n\r\n\r\n```\r\n/Users/stant/Documents/trackrecord/trackrecord/node_modules/react-native/local-cli/bundle/buildBundle.js:17\r\nfunction buildBundle(args, config, output = outputBundle) {\r\n                                          ^\r\n\r\nSyntaxError: Unexpected token =\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:387:25)\r\n    at loader (/Users/stant/Documents/trackrecord/trackrecord/node_modules/babel-register/lib/node.js:130:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/stant/Documents/trackrecord/trackrecord/node_modules/babel-register/lib/node.js:140:7)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (internal/module.js:16:19)\r\n    at Object.<anonymous> (bundle.js:11:21)\r\n    at Module._compile (module.js:413:34)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/181156076","html_url":"https://github.com/facebook/react-native/issues/5806#issuecomment-181156076","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5806","id":181156076,"user":{"login":"thessem","id":973593,"avatar_url":"https://avatars.githubusercontent.com/u/973593?v=3","gravatar_id":"","url":"https://api.github.com/users/thessem","html_url":"https://github.com/thessem","followers_url":"https://api.github.com/users/thessem/followers","following_url":"https://api.github.com/users/thessem/following{/other_user}","gists_url":"https://api.github.com/users/thessem/gists{/gist_id}","starred_url":"https://api.github.com/users/thessem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thessem/subscriptions","organizations_url":"https://api.github.com/users/thessem/orgs","repos_url":"https://api.github.com/users/thessem/repos","events_url":"https://api.github.com/users/thessem/events{/privacy}","received_events_url":"https://api.github.com/users/thessem/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T01:41:26Z","updated_at":"2016-02-08T01:41:26Z","body":"A workaround for the initial init is to `react-native init AwesomeProject` as normal. When it fails `cd` into the project directory, run `npm install babel-core@6.4.5` to downgrade babel, then `react-native upgrade ` to finish the project init. Downgrading babel should fix all other problems related to this issue too"}}