首页 > 解决方案 > 执行 npm install react-native-gesture-handler 时出错

问题描述

在我的项目目录npm --save install react-native-gesture-handlernpm install react-native-gesture-handler终端中运行后显示:

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

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2020-02-03T16_55_58_791Z-debug.log

谁能帮我这个?我在网上搜索但找不到任何东西。

标签: windowsreact-nativenpmreact-navigation

解决方案


推荐阅读