Deno is a JavaScript runtime which is based on the V8 engine and written by using the Rust programming language. Deno serves as an alternative to Node.js. This tutorial demonstrates how to install Deno on Ubuntu 24.04.
Install Deno
Download latest version of Deno from GitHub:
sudo wget -qO /usr/local/bin/deno.gz https://github.com/denoland/deno/releases/latest/download/deno-x86_64-unknown-linux-gnu.zip
Run the following command to extract executable from archive:
sudo gunzip /usr/local/bin/deno.gz
Set execute permission:
sudo chmod a+x /usr/local/bin/deno
We can check Deno version as follows:
deno --version
Testing Deno
Create a new main.js
file:
nano main.js
Add the following a line of code:
console.log('Hello world');
Test a program with deno
command:
deno run main.js
Uninstall Deno
If Deno is no longer needed, remove related file:
sudo rm -rf /usr/local/bin/deno
Leave a Comment
Cancel reply