title: How do I create a React Native project using Yarn?
body: <p>I am running the following commands in the DOS console on a Windows 7 (64-bit) machine.</p>
  
  <pre><code>npm install -g yarn
  yarn add global react-native
  yarn add global react-native-cli
  
  react-native init sample
  </code></pre>
  
  <p>After running <code>react-native init sample</code>, the console was closed.</p>
  
  <p>The error log shows:</p>
  
  <pre><code>D:\Mobile&gt;"$basedir/../../Users/pramaswamy/AppData/Local/Yarn/.global/node_modules/.bin/react-native.cmd"   "$@" 
  
  D:\Mobile&gt;exit $? 
  </code></pre>