DEV Community

Cover image for Deno installation and VScode setup
Keramot UL Islam
Keramot UL Islam

Posted on

8 1

Deno installation and VScode setup

Deno is a run time of JavaScript and TypeScript. It's created by the same person who created NodeJS -- Ryan Dahl.
Recently They have published the stable version of Deno 1.0.0

We also created a Facebook group for Developers:
Deno Developers Bangladesh

Deno Installation

macOS and Linux:
curl -fsSL https://deno.land/x/install/install.sh | sh
Using Homebrew: brew install deno

Windows:
iwr https://deno.land/x/install/install.ps1 -useb | iex

Now Try to run deno --version in your terminal, if don't works then you might need to add the path on your OS.
For More Installation options Click Here

Visual Studio Code Setup

  1. Create a project directory, Let's say hello-deno is the name of the directory/folder.
  2. Now create a index.ts file and .vscode directory, in the root directory.
  3. Install the Deno extension for vscode. Which is created by axetroy.
  4. Create a settings.json in .vscode directory.
  5. add { "deno.enable": true, } in settings.json file.
  6. console.log("Hello Universe...") in the index.ts file.
  7. On your terminal go to the project directory and run deno run index.ts

Note: Deno can compile both JavaScript and TypeScript. So, your file extension also can be .js

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (1)

Collapse
 
algal profile image
Alexis Gallagher

These instructions are for the deprecated Deno extension from axetroy, not for the official VSCode extension from denoland.

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay