React native project deleted on xcode, can't run “run

1 - Delete your ios and android folder

2 - In your project directory:

react-native upgrade

3 - link for any native dependency:

react-native link

4 - And after that:

react-native run-ios

ps:

npm删除项目所有依赖和清缓存

清缓存的办法,一个是 npm cache verify, 还有一个方法npm cache clean --force

删除项目所有依赖  npm uninstall *

评论

暂无评论