Deno is a secure runtime for JavaScript and TypeScript.

Deno is basically Node reversed.

We will install Deno on CentOS or Red Hat Enterprise Linux.

Enter the following commands in Terminal.

sudo dnf install curl # do this if you don't have curl already installedCode language: PHP (php)
curl -fsSL https://deno.land/x/install/install.sh | shCode language: JavaScript (javascript)

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"Code language: Bash (bash)

Open a new Terminal instance.

Enter the following command.

deno

Run the following command.

deno run https://deno.land/std/examples/welcome.tsCode language: JavaScript (javascript)

Happy Coding!

I compiled a list of software and services that I use to improve my workflow, here is the link to the list.

Darryl Dias

I’m Darryl. I’m a 3D Artist, Programmer and Linux enthusiast. On this site I share my insights, tips and tricks, tutorials, methods and best practices.