react-native install 报错 No git binary found in $PATH解决方法
react-native install 报错 No git binary found in $PATH解决方法在react-native项目安装teaset时报错执行命令 : “npm install teaset --save ”或“yarn add teaset” 报错:“npm ERR! code ENOGITnpm ERR! No git binary found in $PATH… ”
·
react-native install 报错 No git binary found in $PATH解决方法
在react-native项目安装teaset时报错
执行命令 : “npm install teaset --save ”或“yarn add teaset” 报错:
“npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
… ”
解决方案
把git放在环境变量里吧。Windows下的话可以在git-scm.com/downloads下下载,安装后把安装目录下的bin放在环境变量里就ok了。
例如:我的git安装在这个目录下 D:\Program Files\Git\bin那就在系统环境变量 PATH中新建 输入“D:\Program Files\Git\bin”
更多推荐
已为社区贡献11条内容
所有评论(0)