Install

Install a Deno package for global use.

e.g. Install vno - Vue for Deno.

$ deno install --allow-net https://deno.land/x/vno/install/vno.ts

Reinstall

If you need to install the same package but maybe with additional permissions, you need to force install.

Add the -f flag.

e.g.

$ # First install.
$ deno install  'https://deno.land/x/esbuild@v0.11.11/mod.js'

$ # Second install.
$ deno install --allow-read 'https://deno.land/x/esbuild@v0.11.11/mod.js'
error: Existing installation found. Aborting (Use -f to overwrite).
$ deno install -f --allow-read 'https://deno.land/x/esbuild@v0.11.11/mod.js'
$ which esbuild
/Users/mcurrin/.deno/bin/esbuild

Viewing that file:

  • ~/.deno/bin/esbuild
      #!/bin/sh
      # generated by deno install
      exec deno run --allow-read --allow-net 'https://deno.land/x/esbuild@v0.11.11/mod.js' "$@"
    

Run

If Deno’s bin directory is in your PATH, you can then run that package from anywhere.

e.g.

$ vno --help
$ esbuild --help