You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native运行报错@react-navigation/stack模块找不到如何解决?

@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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.01 10:24:01