deno add
Command line usage
deno add [OPTIONS] [packages]...Add dependencies to your configuration file.
deno add jsr:@std/path
You can also add npm packages:
deno add npm:react
Or multiple dependencies at once:
deno add jsr:@std/path jsr:@std/assert npm:chalk
Options
--allow-scripts
Allow running npm lifecycle scripts for the given packages Note: Scripts will only be executed when using a node_modules directory (--node-modules-dir).
--dev
Short flag: -D
Add as a dev dependency.
© 2018–2024 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/cli/add