react-native: react-native init fails with syntax error

node: v5.5.0 npm: 3.3.12 react-native-cli: 0.1.10

/Users/stant/Documents/trackrecord/trackrecord/node_modules/react-native/local-cli/bundle/buildBundle.js:17
function buildBundle(args, config, output = outputBundle) {
                                          ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at loader (/Users/stant/Documents/trackrecord/trackrecord/node_modules/babel-register/lib/node.js:130:5)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/stant/Documents/trackrecord/trackrecord/node_modules/babel-register/lib/node.js:140:7)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (bundle.js:11:21)
    at Module._compile (module.js:413:34)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 21 (10 by maintainers)

Most upvoted comments

facing the same issue, how it can be closed if people who are start using it is also facing the same issue again and again.

react-native init project is not able to create all files required .