To install Deno, run the installation script, and add the lines to your profile.
Here it is for ~/.zshrc
. The Deno install script doesn't automatically add it
to the end. Rather than do it manually, I have a little script that does it.
curl -fsSL https://deno.land/x/install/install.sh | sh
cat <<'EOF' >> ~/.zshrc
export DENO_INSTALL="/home/bat/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
EOF