How to install Deno in Ubuntu?
In this tutorial we focus on how to install Deno in Ubuntu. Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. It has build in dependency inspector and code formatter.
Deno ships as a single executable with no dependencies. You can use the following command in an Ubuntu system and install Deno.
curl -fsSL https://deno.land/x/install/install.sh | sh
######################################################################## 100.0%##O=# # Archive: /home/subash/.deno/bin/deno.zip inflating: deno Deno was installed successfully to /home/subash/.deno/bin/deno Manually add the directory to your $HOME/.bash_profile (or similar) export DENO_INSTALL="/home/subash/.deno" export PATH="$DENO_INSTALL/bin:$PATH" Run '/home/subash/.deno/bin/deno --help' to get started
You might have to run these commands from the above output to set environment variables for Deno to work.
export DENO_INSTALL="/home/subash/.deno" export PATH="$DENO_INSTALL/bin:$PATH"
To validate your installation, you can run deno –version
> deno --version deno 1.0.1 v8 8.4.300 typescript 3.9.2
You can also see the v8 and typescript engines’ information being displayed!