So I'm following this react-native tutorial to try and learn how to make apps for Android and iOS: https://www.youtube.com/watch?time_continue=469&v=_CBYbEGvxYY
I started it a while ago and didn't have any issues but I had to get a computer repair done with a new HDD and restarted the tutorial and now I am having a TON of issues. First NPM wouldn't work for me and after scouring questions I finally got that fixed. But now when I run 'npm start' to try and run my app I'm getting the following error:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
I have node installed and I tried reinstalling webpack to fix this error but that didn't help. Does anyone have any suggestions? I'm getting extremely frustrated because I have spent over an hour and a half trying to get this to run between fixing npm etc. I have also added
"scripts": {
"start": "webpack-dev-server --mode development",
"test": "(eslint lib || true) && jest"
}
To the package.json try and fix this issue but it didn't solve it.