I follow this guy’s tutorial
https://youtu.be/MJEcookWYUI?t=686
I get errors after the command on the video
admin@MacBook-Air:~/Demo$ npm run ios
npm ERR! missing script: ios
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/admin/.npm/_logs/2022-09-12T22_06_04_217Z-debug.log
I searched many websites , tried to do everything i saw but i nothing worked.
Please help
2
Answers
try this
Add this to
package.json
file in case it isn’t there.after adding run
npx react-native run-ios
check on your package.json script:
and try to running with
npx react-native run-ios
oryarn ios