React native 为什么可以';我不能安装这些expo导航依赖项吗?

React native 为什么可以';我不能安装这些expo导航依赖项吗?,react-native,expo,React Native,Expo,我正在尝试运行此处列出的命令: 我正确安装了“导航”本身 但当我尝试以下命令时: expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view 我得到以下错误: Installing 5 SDK 36.0.0 compatible native mo

我正在尝试运行此处列出的命令:

我正确安装了“导航”本身

但当我尝试以下命令时:

expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
我得到以下错误:

Installing 5 SDK 36.0.0 compatible native modules using npm
> npm install
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

我以前安装过,其他项目没有问题,所以我不知道为什么会发生这种情况

您使用的是expo还是react native?我都在使用它们否,我想知道您是如何创建项目的?>我使用的是expo。“expo init[projectname]”命令hi klippy你刚刚解决了这个问题,因为我也面临同样的问题吗?你是使用expo还是react native?我正在使用这两个命令否,我是如何创建你的项目的?>我使用了expo。命令“expo init[projectname]”嗨,飞来峰,你刚刚解决了这个问题,因为我也面临着同样的问题