Skip to content

After "react-native init sample" command the console was closed. #958

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

Closed
prabhakaran-ramaswamy opened this issue Oct 13, 2016 · 2 comments
Closed

Comments

@prabhakaran-ramaswamy
Copy link

prabhakaran-ramaswamy commented Oct 13, 2016

I am running the following commands in dos console on windows machine.

npm install -g yarn
yarn add global react-native
yarn add global react-native-cli

react-native init sample
After react-native init sample command the console was closed.
Environment: windows7-64bit, npm:2.15.9, yarn : v0.15.1
The error log shows

D:\Mobile>"$basedir/../../Users/pramaswamy/AppData/Local/Yarn/.global/node_modules/.bin/react-native.cmd" "$@"

D:\Mobile>exit $?

How to create react-native project using yarn?

@FLGMwt
Copy link
Contributor

FLGMwt commented Oct 13, 2016

Global packages don't seem to be working on Windows right now. I could have sworn there was an issue for this but I can't seem to find it.

Until this is resolved, you can stick to using npm for the global react-native and react-native-cli and still use yarn to manage the project dependencies. (make sure you yarn global remove npm-reactnative first)

@bestander
Copy link
Member

This should be fixed in 0.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants