You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Uh oh!
There was an error while loading. Please reload this page.
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?
The text was updated successfully, but these errors were encountered: