美文网首页
【flutter】PowerShell安装chocolatey时

【flutter】PowerShell安装chocolatey时

作者: SophieRabbit | 来源:发表于2020-04-21 16:16 被阅读0次

最近想搞搞flutter,需要安装dart;

在安装dart时,发现还需要先安装chocolatey;

安装chocolatey时,发现需要管理员运行powershell;

用powershell执行chocolatey安装命令时,发生以下错误:

使用“1”个参数调用“DownloadString”时发生异常:“请求被中止: 未能创建 SSL/TLS 安全通道。”

未能创建 SSL/TLS 安全通道

此时我的心情:

mm*p

百度了下,找到解决方法:

在powershell里运行下面命令先:

SecurityProtocol = [Net.SecurityProtocolType]::Tls12

然后再执行安装chocolatey命令:

iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

开始安装了。

相关文章

网友评论

      本文标题:【flutter】PowerShell安装chocolatey时

      本文链接:https://www.haomeiwen.com/subject/ofxpihtx.html