Wie erstelle ich ein React Native-Projekt mit Yarn?

Ich führe die folgenden Befehle in der DOS-Konsole auf einem Windows 7-Computer (64-Bit) aus.

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

react-native init sample

Nach dem Rennenreact-native init sample, die Konsole wurde geschlossen.

Das Fehlerprotokoll zeigt:

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

D:\Mobile>exit $? 

Antworten auf die Frage(8)

Ihre Antwort auf die Frage