Deno on CentOS/RHEL

Deno on CentOS/RHEL

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 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"

Open a new Terminal instance.

Enter the following command.


Run the following command.

deno run

Happy Coding!

2 responses to “Deno on CentOS/RHEL”

  1. I got an error: -bash: /root/.deno/bin/deno: cannot execute binary file

    1. Did you add the following lines to the .bashrc

      export DENO_INSTALL=”/home/$USER/.deno”
      export PATH=”$DENO_INSTALL/bin:$PATH”

      After adding these lines, exit the current Terminal session and Open the new one and it should start working.

      In my opinion it is better to install it under an administrator or a regular user instead of root.

      If you have any questions, or the steps I suggested does not work, feel free to leave a comment.

Leave a Reply

Your email address will not be published.