使用包管理器Chocolatey(choco)安装deno遇到的问题

421 阅读1分钟

包管理器Chocolatey官网地址 以管理员权限打开cmd.exe命令行提示,执行如下内容:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

遇到的问题、 ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'github.com/denoland/de…'. Exception calling "GetResponse" with "0" argument(s): "Unable to connect to the remote server" This package is likely not broken for licensed users - see docs.chocolatey.org/en-us/featu…. The install of deno was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\deno\tools\chocolateyinstall.ps1'. 在这里插入图片描述

1.增加等待时间

choco install deno --execution-timeout 10000

2.关闭防火墙

我使用的是第一次方法

最后成功了 在这里插入图片描述