A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.deno.com/runtime/reference/cli/uninstall/ below:

deno uninstall

deno uninstall

Command line usage:

deno uninstall [OPTIONS] [name-or-package] [additional-packages]...

Uninstalls a dependency or an executable script in the installation root's bin directory.

deno uninstall @std/dotenv chalk
deno uninstall --global file_server

To change the installation root, use --root flag:

deno uninstall --global --root /usr/local serve

The installation root is determined, in order of precedence:


Options Jump to heading# --global Jump to heading#

Short flag: -g

Remove globally installed package or module.

--root Jump to heading#

Installation root.

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.

deno uninstall [PACKAGES] Jump to heading#

Remove dependencies specified in deno.json or package.json:

$ deno add npm:express
Add npm:express@5.0.0

$ cat deno.json
{
  "imports": {
    "express": "npm:express@5.0.0"
  }
}
$ deno uninstall express
Removed express

$ cat deno.json
{
  "imports": {}
}

Tip

You can also use deno remove which is an alias to deno uninstall [PACKAGES]

You can remove multiple dependencies at once:

$ deno add npm:express jsr:@std/http
Added npm:express@5.0.0
Added jsr:@std/http@1.0.7

$ cat deno.json
{
  "imports": {
    "@std/http": "jsr:@std/http@^1.0.7",
    "express": "npm:express@^5.0.0",
  }
}
$ deno remove express @std/http
Removed express
Removed @std/http

$ cat deno.json
{
  "imports": {}
}

Info

While dependencies are removed from the deno.json and package.json they still persist in the global cache for future use.

If your project contains package.json, deno uninstall can work with it too:

$ cat package.json
{
  "dependencies": {
    "express": "^5.0.0"
  }
}

$ deno remove express
Removed express

$ cat package.json
{
  "dependencies": {}
}
deno uninstall --global [SCRIPT_NAME] Jump to heading#

Uninstall serve

deno uninstall --global serve

Uninstall serve from a specific installation root

deno uninstall -g --root /usr/local/bin serve

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