Deno on Ubuntu

Deno on Ubuntu

Deno is a secure runtime for JavaScript and TypeScript.

Deno is basically Node reversed.

We will install Deno on Ubuntu.

Enter the following commands in Terminal.

sudo apt install curl # do this if you don't have curl already installed
curl -fsSL | sh

Next step is specifying Deno’s path to bash.

Open .bashrc and add the lines below to it.

nano ~/.bashrc
export DENO_INSTALL="/home/$USER/.deno" export PATH="$DENO_INSTALL/bin:$PATH"

Open a new Terminal instance.

Enter the following command.


To check the version on Deno simply run.

deno -v

Run the following command.

deno run

You can also write your first Deno hello world server, sample code below.

import { serve } from ""; const s = serve({ port: 8000 }); console.log("http://localhost:8000/"); for await (const req of s) { req.respond({ body: "Hello World\n" }); }

Now you have Deno successfully installed,

You can join the discussion on Reddit

Happy Coding!

Leave a Reply

Your email address will not be published. Required fields are marked *