【Unity开发小技巧】UnityPackageManager 通过Install package from git URL.失败报错“找不到Git”和“网络访问失败”:

目录

一、No ‘git‘ executable was found,找不到“Git”

1、问题描述

2、解决方法

二、 Recv failure: Connection was reset网络问题不能访问下载

1、问题描述:

2、解决方法 


一、No ‘git‘ executable was found,找不到“Git”

1、问题描述

报错内容:No ‘git‘ executable was found. Please install Git on your system then restart。

我在使用UnityPackageManager 通过Install package from git URL..安装插件的时候提示以上报错,

2、解决方法

下载安装Git   https://git-scm.com/downloads,如果已经安装过查看一下环境变量配置是否正确。

如果初次安装Git并配置环境变量后,建议重启电脑再开项目。

二、 Recv failure: Connection was reset网络问题不能访问下载

1、问题描述:

我在用UnityPackageManager 通过Install package from git URL下载package的时候报错以下错误:

Error when executing git command. fatal: unable to access ‘https://github.com/focus-creative-games/hybridclr_unity.git/’: Recv failure: Connection was reset. A re-import of the project may be required to fix the issue or a manual modification of D:/xxxx/Packages/manifest.json file。。。

经查阅资料发现我VPN的代理IP地址和端口需要添加到环境变量里面。

https://docs.unity3d.com/cn/current/Manual/upm-config-network.html

2、解决方法 

1、打开网络设置获取当前的VPN代理IP和端口。

2、 高级系统设置环境变量

变量名:HTTP_PROXY 变量值:ip:端口
变量名:HTTPS_PROXY 变量值:ip:端口
然后保存

3、再次启动下载成功了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

幻世界

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值