如果你在运行deno的时候出现了类似下面的错误,不要慌,只是参数顺序错了,把deno run welcome.ts --allow-net
改为deno run --allow-net welcome.ts
就可以了。
Compile file:///Users/admin/Documents/study/deno-test/welcome.ts error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10) at Object.listen ($deno$/ops/net.ts:51:10) at listen ($deno$/net.ts:152:22) at serve (https://deno.land/[email protected]/http/server.ts:261:20) at file:///Users/admin/Documents/study/deno-test/welcome.ts:2:11
Related Posts
- command not found: deno – macOS
- npm ERR! gyp verb `which` failed Error: not found: python
- c++ ‘-DNODE_GYP_MODULE_NAME=libsass’ ‘-DUSING_UV_SHARED=1’ ‘-
- Sublime Text 自动换行
- Failed to change timestamp of the file in IntelliJ IDEA
- macOS中staff和wheel是什么?
- #1698 – Access denied for user ‘root’@’localhost’
- Warning in ./libraries/plugin_interface.lib.php#551
- ERROR 1067 (42000): Invalid default value for ‘created_at’