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

包管理器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 ‘https://github.com/denoland/deno/releases/download/v1.15.3/deno-x86_64-pc-windows-msvc.zip’. Exception calling “GetResponse” with “0” argument(s): “Unable to connect to the remote server”
This package is likely not broken for licensed users - see https://docs.chocolatey.org/en-us/features/private-cdn.
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.关闭防火墙

我使用的是第一次方法

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值