本页内容
deno add
命令行用法
deno add [OPTIONS] [packages]...
将依赖项添加到你的配置文件中。
deno add jsr:@std/path
你也可以添加 npm 包
deno add npm:react
或者一次添加多个依赖项
deno add jsr:@std/path jsr:@std/assert npm:chalk
选项 Jump to heading
--allow-scripts
Jump to heading
允许为给定的包运行 npm 生命周期脚本。注意:脚本仅在使用 node_modules 目录(--node-modules-dir
)时执行。
--dev
Jump to heading
短标记:-D
作为开发依赖项添加。