react native 经常遇到的run失败的坑

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/koufulong/article/details/82142082

经常run失败显示的内容:
这里写图片描述

解决方法:
1.运行命令:
rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json

2.点击模拟器上的Reload JS或者重新react-native run-ios

猜你喜欢

转载自blog.csdn.net/koufulong/article/details/82142082