When React-Native initializes a new project, it will not be able to run.

React-Native can"t run when initializing a new project
I don"t know what to do

Mar.18,2021

if you study according to the tutorials, you'd better have the same version number of all packages as in the tutorials, so that you can run steadily. If you are self-taught, it is recommended to teach a stable version. Now you can start with


package.json to modify the react-naive version to "react-native": "^ 0.24", , Then delete rm-rf node_module & & cnpm install .


the reason why new projects can't run is mainly due to the problem of react-native version. Generally, do not choose the latest version, there will be more pits.

and with the upgrade of rn, the versions of third-party plug-ins often become incompatible. It would be nice to step on more tramps

.
Menu