0

当我尝试安装有天赋的聊天 UI 包时,它返回给我一个它不存在的错误。你能帮我解决这个问题吗?

  • 节点版本:10
  • 反应原生版本:0.61
  • 安卓

C:\Users\XXXX\Desktop\AProject>npm i react-native-gifted-chat npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno ENOENT npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t https://github.com/EvanBacon/react-native-parsed-text.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\XXXXX\AppData\Roaming\npm-cache\_logs\2019-10-17T05_42_35_768Z-debug.log

4

1 回答 1

0

你必须使用 git bash 来安装有天赋的聊天。我已经在这里回答了这个问题。

https://github.com/FaridSafi/react-native-gifted-chat/issues/1444

安装 git 然后从 git 控制台安装有天赋的聊天。

于 2019-10-24T02:32:07.157 回答