react-native - 安装 'expo start' 后无法运行 "@react-navigation/web"命令

标签 react-native expo node-modules

安装“@react-navigation/web”节点模块后终端出现以下错误并且无法启动 expo

错误:在此项目中找不到 expo - 你运行 yarn/npm install 了吗?

├─ action /usr/local/lib/node_modules/expo-cli/src/commands/start.ts:34:11
    ├─ /usr/local/lib/node_modules/expo-cli/src/commands/start.ts:135:22
    └─ expo start /usr/local/lib/node_modules/expo-cli/src/exp.ts:350:7

最佳答案

在您的 package.json 中查找您的 Expo 版本。我不知道为什么,但我的 Expo 版本是 1.0.0,我将其更改为最新版本,即 41.0.1,然后它又恢复了工作。

"expo": "~41.0.1",

关于react-native - 安装 'expo start' 后无法运行 "@react-navigation/web"命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67505729/

相关文章:

node.js - 对我的代码运行 Sonar 库分析时出现 NullPointerException

android - 无法在android studio中编译jitsi android源代码

android - React Native无法确定任务 ':app:compileDebugJavaWithJavac'的依赖关系

javascript - Uncaught Error : Packager is not running at http://192. 168.0.100.19001

react-native - 是否可以在react-native-cli inited项目上使用expo启动屏幕

node.js - npm runject 后无法使用 JSX

react-native - react native FlatList警告

android - Google Play Expo w/React - Expo 的 app.json 文件中与 Android 对应的 plist 是什么?

react-native - 如何从 Expo SQLite API 获取 sql 错误的原因?

由于添加 react-native-google-place-picker 节点模块,React-Native 应用程序将无法编译