While I was trying to install and setup react native, the precaution observed about the core-js version as update your core-js@... to core-js@3 But don\'t know how to update
How about reinstalling the node module? Go to the root directory of the project and remove the current node modules and install again.
the root directory
node modules
These are the commands : rm -rf node_modules npm install
rm -rf node_modules npm install
OR
npm uninstall -g react-native-cli and
npm uninstall -g react-native-cli
npm install -g react-native-cli