windows - 执行 npm install react-native-gesture-handler 时出错
问题描述
在我的项目目录npm --save install react-native-gesture-handler
或npm 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
谁能帮我这个?我在网上搜索但找不到任何东西。
解决方案
推荐阅读
- elixir - 如何根据是否选中复选框来显示/隐藏表单的某些部分
- amazon-web-services - 查看私有 S3 存储桶/文件夹中的文件
- c# - 如何使用参数和返回值创建 FUNC 动作列表
- vuejs2 - How to properly handle non-existent named route?
- xml - 在文件中附加带有内容的 xml 标记
- symfony4 - Display only form item from a CollectionType with error
- php - 如何在 PHP 中传递 CURL url
- javascript - Assign an imported function as a class method?
- javascript - 传递一个调用函数的 => 而不是仅仅传递函数本身
- ruby-on-rails - 如何在Rails中构造form_for,可以同时创建belongs_to和has_many关联