0
0
DenoHow-ToBeginner ยท 3 min read

How to Check Deno Version Quickly and Easily

To check the installed deno version, run the command deno --version in your terminal. This shows the Deno runtime version along with versions of its components like V8 and TypeScript.
๐Ÿ“

Syntax

The command to check the Deno version is simple and direct.

  • deno: The Deno runtime command.
  • --version: The flag that tells Deno to print its version information.
bash
deno --version
๐Ÿ’ป

Example

This example shows how to run the command in a terminal and what output to expect.

bash
deno --version
Output
deno 1.36.4 v8 11.9.194.7 typescript 5.1.6
โš ๏ธ

Common Pitfalls

Some common mistakes when checking the Deno version include:

  • Typing deno -v which does not work because Deno uses --version instead.
  • Running the command in a terminal where Deno is not installed or not in the system PATH, resulting in an error like command not found.
  • Confusing Deno version with Node.js version; they are different runtimes.
bash
Wrong command:
denov

Right command:
deno --version
๐Ÿ“Š

Quick Reference

Remember these quick tips:

  • Use deno --version to check version.
  • Ensure Deno is installed and in your PATH.
  • Output includes Deno, V8, and TypeScript versions.
โœ…

Key Takeaways

Run deno --version in your terminal to see the installed Deno version.
The output shows Deno, V8 engine, and TypeScript versions together.
Avoid using -v as it is not recognized by Deno.
Make sure Deno is installed and accessible in your system PATH before running the command.