I want to run my react-native project, but an error occurred. Please give me advise.
Environment
$ npm list --depth=0
[email protected] /Dev/lrn/rn/nav
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Project Directory
$ls
__tests__ index.android.js node_modules yarn.lock
android index.ios.js package-lock.json
app.json ios package.json
What I Do
$ rm -rf node_modules
$ npm cache clean --force
$ npm install
$ react-native run-ios
Error Red Screen iPhone Simulator
I think environment was wrong, but what I do cannot correct it. Thank you for seeing and any advice is welcome. thank you.
I ran into the same problem, after doing some reading on their Github Issues
yarn add [email protected]
or
npm i [email protected] --save
did the trick for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With