在本頁面上
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
新增為開發相依性。