Command line usage:
deno add [OPTIONS] [packages]...
Add dependencies to your configuration file.
You can also add npm packages:
Or multiple dependencies at once:
deno add jsr:@std/path jsr:@std/assert npm:chalk
--allow-scripts
Jump to heading#
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
Jump to heading#
Short flag: -D
Add the package as a dev dependency. Note: This only applies when adding to a package.json
file.
--jsr
Jump to heading#
assume unprefixed package names are jsr packages.
--npm
Jump to heading#
assume unprefixed package names are npm packages.
Dependency management options Jump to heading#--frozen
Jump to heading#
Error out if lockfile is out of date.
--lock
Jump to heading#
Check the specified lock file. (If value is not provided, defaults to "./deno.lock").
--no-lock
Jump to heading#
Disable auto discovery of the lock file.
Did you find what you needed?RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4