I want to learn React Native and start from [Facebook Github][1], So have installed the node.js V8.114 , then run below command on command prompt
npm install -g create-react-native-app
create-react-native-app AwesomeProject
cd AwesomeProject
npm start
Everything went right, but when I run the npm start , this error caused:
Error: React native is not installed. Please run
npm installin your project directory. 16:36:21: Error starting packager: Error: Couldn't start project. Please fix the errors and restart the project. at C:\xdl\src\Project.js:1329:11 at Generator.next () at step (C:\Users\Riazati\AwesomeProject\node_modules\xdl\build\Project.js:1735:191) at C:\Users\Riazati\AwesomeProject\node_modules\xdl\build\Project.js:1735:361 at npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start:react-native-scripts startnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Can anyone help me?
yarnwith react, much quicker and reliable with react. If you already installedyarnthen useyarn start. If there is still error thenyarn install. - SGhaleb