当我尝试安装一个有天赋的聊天 UI 包时,它向我返回了一个错误,指出它不存在。你能帮我解决这个问题吗?
- 节点版本:10
- 反应原生版本:0.61
- 人造人
C:UsersXXXXDesktopAProject>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:UsersXXXXXAppDataRoamingnpm-cache_logs2019-10-17T05_42_35_768Z-debug.log
你必须使用 git bash 来安装天才聊天。我在这里回答了这个问题。
https://github.com/FaridSafi/react-native-gifted-chat/issues/1444
安装 git,然后从 git 控制台安装天赋聊天。