我在安装用 Deno 改造的 pagic 的时候也遇到了网络问题,有人知道如何操作嘛?
P.S: 浏览器打开 https://raw.githubusercontent.com/pillarjs/path-to-regexp/v6.1.0/src/index.ts 是可以的;
P.S: 我局部代理、全局代理、不开代理各种情况下都是这个报错。
$ deno install --unstable --allow-read --allow-write --allow-net https://deno.land/x/pagic/mod.ts
Download https://deno.land/x/pagic/mod.ts
Compile https://deno.land/x/pagic/mod.ts
Download https://deno.land/x/pagic/src/Pagic.ts
...
Download https://deno.land/x/media_types@v2.3.5/mod.ts
Download https://raw.githubusercontent.com/pillarjs/path-to-regexp/v6.1.0/src/index.ts
error: Uncaught Http: error sending request for url (https://raw.githubusercontent.com/pillarjs/path-to-regexp/v6.1.0/src/index.ts): error trying to connect: tcp connect error: Connection refused (os error 61)
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10)
at async processImports ($deno$/compiler.ts:736:23)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
at async processImports ($deno$/compiler.ts:753:7)
根据我目前的水平进行了 curl 测试,报错如下:
curl -fsSL https://raw.githubusercontent.com/pillarjs/path-to-regexp/v6.1.0/src/index.ts
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
目前还没搜到相关解决方案…