Skip to content
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
Closed

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

sjmueller opened this issue Jun 13, 2017 · 6 comments
Assignees
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@sjmueller
Copy link
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
Copy link

I have the same problem

@JobsSteve
Copy link

Me tooooooo

@JobsSteve
Copy link

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

@nihgwu
Copy link
Contributor

nihgwu commented Jun 13, 2017

TerminalClass was renamed to Terminal facebook/metro@c1ff8b5

@nihgwu nihgwu mentioned this issue Jun 13, 2017
@jeanlauliac
Copy link

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
Copy link

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

@hramos hramos closed this as completed Jun 13, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jun 13, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants