On this page
deno remove
deno remove 会从你的项目配置文件中移除依赖。它与 deno add 相反。
基本用法 Jump to heading
移除一个包:
>_
deno remove @std/path
一次移除多个包:
>_
deno remove @std/path @std/assert npm:express
从哪里移除依赖 Jump to heading
deno remove 会同时查看
deno.json 和 package.json(如果
存在),并从找到匹配依赖的那个文件中将其移除。
Command line usage:
deno remove [OPTIONS] [packages]...Remove dependencies from the configuration file.
deno remove @std/path
You can remove multiple dependencies at once:
deno remove @std/path @std/assert
Dependency management options Jump to heading
--frozen<BOOLEAN>optionalError out if lockfile is out of date.
--lock<FILE>optionalCheck the specified lock file. (If value is not provided, defaults to "./deno.lock").
--no-lockDisable auto discovery of the lock file.
Options Jump to heading
--lockfile-onlyInstall only updating the lockfile.