Reputation: 11
Today I start to learn about React. After install React by some command in Terminal, I use react-native MyFirstProject to create my first project, and in my Android Studio emulator get a red error screen like this:
I tried to resolve follow there command but still have no idea what I am doing? Can someone explain for me how to fix it? Thank you.
Upvotes: 0
Views: 130
Reputation: 778
To fix open a new terminal,go to your project folder and run
npm install
after installation complete
npm start
What “npm start” does is start your react package manager, read more about it in details here
Also run the command, This is quite a useful tool during development.
adb reverse tcp:8081 tcp:8081
And last Reload.
For android one can use CTRL + R For apple one can use R + R (two times R).
Upvotes: 1
Reputation: 2607
Looks you didn't install babel, babel module is not existion the the node_module.
npm install babel
then npm start
If it doesn't work. You can try npm start --reset-cache
Hope it help.
Upvotes: 0