New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.46.0-rc.2] react-native init fails #14476

Closed
sjmueller opened this Issue Jun 13, 2017 · 6 comments

Comments

Projects
None yet
7 participants
@sjmueller
Contributor

sjmueller commented Jun 13, 2017

Running react-native init rn46 --version "0.46.0-rc.2" fails to create a new project, with exception:

npm WARN react-native@0.46.0-rc.2 requires a peer of react@16.0.0-alpha.12 but none was installed.
module.js:472
    throw err;
    ^

Error: Cannot find module 'metro-bundler/build/lib/TerminalClass'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/rn46/node_modules/react-native/local-cli/server/runServer.js:18:18)
    at Module._compile (module.js:571:32)
    at loader (/rn46/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/rn46/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

The generated package.json does not include react:

  "dependencies": {
    "react-native": "0.46.0-rc.2"
  }

I tried this with node version v7.9, v7.10, v8.1, and yarn v0.24.6, all giving the same exception.

@zhenliliu

This comment has been minimized.

Show comment
Hide comment
@zhenliliu

zhenliliu Jun 13, 2017

I have the same problem

zhenliliu commented Jun 13, 2017

I have the same problem

@JobsSteve

This comment has been minimized.

Show comment
Hide comment
@JobsSteve

JobsSteve Jun 13, 2017

Me tooooooo

JobsSteve commented Jun 13, 2017

Me tooooooo

@JobsSteve

This comment has been minimized.

Show comment
Hide comment
@JobsSteve

JobsSteve Jun 13, 2017

0.44以后的这几次升级,太TM蛋疼了,我又不得不退回到44

JobsSteve commented Jun 13, 2017

0.44以后的这几次升级,太TM蛋疼了,我又不得不退回到44

@nihgwu

This comment has been minimized.

Show comment
Hide comment
@nihgwu

nihgwu Jun 13, 2017

Contributor

TerminalClass was renamed to Terminal facebook/metro@c1ff8b5

Contributor

nihgwu commented Jun 13, 2017

TerminalClass was renamed to Terminal facebook/metro@c1ff8b5

@nihgwu nihgwu referenced this issue Jun 13, 2017

Closed

fix init #14477

@jeanlauliac

This comment has been minimized.

Show comment
Hide comment
@jeanlauliac

jeanlauliac Jun 13, 2017

Contributor

Sorry about that. We should have published the packager with a breaking-change version number bump but didn't. See explanations on #14477. We're looking into it.

Contributor

jeanlauliac commented Jun 13, 2017

Sorry about that. We should have published the packager with a breaking-change version number bump but didn't. See explanations on #14477. We're looking into it.

@jeanlauliac jeanlauliac self-assigned this Jun 13, 2017

@jeanlauliac

This comment has been minimized.

Show comment
Hide comment
@jeanlauliac

jeanlauliac Jun 13, 2017

Contributor

If you try again, I believe this should now work as expected.

Contributor

jeanlauliac commented Jun 13, 2017

If you try again, I believe this should now work as expected.

@hramos hramos closed this Jun 13, 2017

@facebook facebook locked as resolved and limited conversation to collaborators Jun 13, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.