How to install Deno

How to install Deno

3 minutes 14s
A step by step guide on how to install Deno on the terminal.

Install script


curl -fsSL https://deno.land/x/install/install.sh | sh


Install packages needed (if script fails)


sudo apt-get install curl



sudo apt-get install unzip


Install script output


Archive:  /home/f02f/.deno/bin/deno.zip
  inflating: /home/f02f/.deno/bin/deno
Deno was installed successfully to /home/f02f/.deno/bin/deno
Manually add the directory to your $HOME/.bash_profile (or similar)
  export DENO_INSTALL="/home/f02f/.deno"
  export PATH="$DENO_INSTALL/bin:$PATH"
Run '/home/f02f/.deno/bin/deno --help' to get started

Check it is installed


/home/f02f/.deno/bin/deno --help # replace f02f with your username

Add to $PATH


vim $HOME/.bash_profile



# export deno variables in .bash_profile
# replace f02f with your username
export DENO_INSTALL="/home/f02f/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"


Reload .bash_profile


source ~/.bash_profile


Test Deno


deno eval "console.log('hello fromzerotofullstack')"


Notes

• Deno homepage
https://deno.land/

• Install Deno
https://github.com/denoland/deno_install

• Deno's Github
https://github.com/denoland/deno

• More install options
https://github.com/denoland/deno_install