我正在尝试Deno,在运行示例时遇到了错误:
$ deno run https://deno.land/std/examples/curl.ts https://example.com
Download https://deno.land/std/examples/curl.ts
Warning Implicitly using master branch https://deno.land/std/examples/curl.ts
Compile https://deno.land/std/examples/curl.ts
error: Uncaught PermissionDenied: network access to "https://example.com/", run again with the --allow-net flag
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10)
at async fetch ($deno$/web/fetch.ts:591:27)
at async https://deno.land/std/examples/curl.ts:3:13
我试过做
$ deno run https://deno.land/std/examples/curl.ts https://example.com --allow-net
但仍然得到同样的错误。我做错了什么?