How to install Deno JS on Windows or Mac
Install Deno with curl
To install Deno, it’s really simple. Let’s start with a good ol fashion curl:
This method works for Mac OS & WSL.
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.6.0
You’ll then receive a message:
Deno was installed successfully to /home/$USER/.local/bin/deno
You’ll now need to update your .bash_profile, and add these few lines of code.
export DENO_INSTALL="/home/$USER/.local"
export PATH="$DENO_INSTALL/bin:$PATH"
To test, type this in your terminal:
deno
Install Deno with Homebrew
Homebrew is magical and makes everything easy but at the moment this method only works for Mac OS.
Follow these series of commands:
brew update
brew install deno
Once brew has finished doing its thing. Type this command in your terminal to check if it works:
$: deno -v
// Output
deno 1.6.0
v8 8.8.278.2
typescript 4.1.2
Happy coding in Deno!
I like to tweet about Deno and post helpful code snippets. Follow me there if you would like some too!