运行 Deno 程序时遇到此错误。
任何人都可以帮助我如何在Deno中添加多个标志?
这是我的代码: index.ts
import * as bcrypt from "https://deno.land/x/bcrypt/mod.ts";
const salt = await bcrypt.genSalt(8);
const hash = await bcrypt.hash("test", salt);
console.log(hash);
和我使用的命令相同:
deno run --allow-net index.ts
我是Deno上的新手
预先感谢
答案 0 :(得分:1)
您可以在run
之后和脚本之前随意链接多个标志。
deno run --flag1 --flag2 --flagN script.ts
所以您应该这样做:
deno run --allow-net --unstable index.ts