React Native运行报错@react-navigation/stack模块找不到如何解决?
在项目内或以下目录中未找到
@react-navigation/stack模块:
- node_modules
- ../node_modules
若你确认该模块确实存在,请尝试执行以下步骤排查:
- 清除watchman监听:
watchman watch-del-all - 删除node_modules文件夹后运行
yarn install安装依赖 - 重置Metro缓存:
yarn start --reset-cache - 移除缓存文件:
rm -rf /tmp/metro-*
内容的提问来源于stack exchange,提问作者Vishrut Tiwari
相关产品推荐
相关产品推荐

