Delete the react-native nodemodules folder in npm install, but it will no longer run

react-native nodemodules folder deleted in npm install, but can no longer run
error: Could not get BatchedBridge, make sure your bundle is packaged properly "on start of app
Baidu round, still have no choice but to delete the whole project and start all over again, solve


I also encountered your problem. The reason I deleted node_modules is that the code introduction prompt does not always exist after I install another module, but it can be found in the node_modules folder, so I deleted the entire node_modules folder and then reinstalled it, and there is a problem in your topic, although some people on stackoverflow have encountered this kind of error prompt. However, it is not caused by deleting node_modules at all (the project can be run before deleting node_module)
my solution is to use npm install to install instead of cnpm install,. After installation, the run-android interface may appear black screen. Turn off and run run-android again

Menu