📜  deno install ubuntu - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:00:23.823000             🧑  作者: Mango

Deno Install Ubuntu - Shell-Bash


Introduction

Deno is a secure runtime for JavaScript and TypeScript that provides a simple and modern way to build server-side applications using only one programming language. In this tutorial, we will explore how to install Deno on Ubuntu using the Shell-Bash command.

Prerequisites

Before installing Deno on Ubuntu, ensure that the following prerequisites are met:

  • A Ubuntu 20.04 machine or server with a non-root user account with sudo privileges.
  • A terminal window with access to the root account.
Step-by-Step Installation
  1. Open the terminal on your Ubuntu machine and update your package list to ensure you have the latest versions of packages. Use the following command:

    sudo apt-get update
    
  2. Next, install the curl package, which will be used to download the Deno installer:

    sudo apt-get install curl
    
  3. Once the curl package has been installed, you can download and install the latest version of Deno using the following command:

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

    This command will fetch the Deno installer script using curl and then run it using sh, with the -y flag indicating that you accept the default installation options.

  4. After the installation is complete, you can verify that Deno has been installed by running the following command:

    deno --version
    

    This should output the version of Deno that has been installed on your system.

Conclusion

That's it! You've successfully installed Deno on Ubuntu using the Shell-Bash command. You can now start building server-side applications using Deno with ease.