iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📚

A Beginner's Guide: Installing Essential Applications for Windows

に公開

I'm going to write down the installation procedures for prerequisite applications—like Node.js, which I often omit in my articles—that are necessary when building programs.
By the way, please note that this article is for Windows users!

Node.js

Although you can install it via command line...
In this guide, we will install it using the installer.

Node.js
  1. Download the package from the official website

    • Access the official Node.js website.
    • On the download page, you will find the LTS (Long Term Support) version and the latest release. If you are installing it for the first time or prioritize stability, I recommend choosing the LTS version.
  2. Run the installer

    • Run the downloaded installer (e.g., node-vXX.X.X-x64.msi).
    • Once the installer starts, click "Next" to proceed.
  3. Accept the license agreement

    • Read the license agreement, select "I accept the terms in the License Agreement," and click "Next."
  4. Select the installation destination

    • If you don't need to change the default installation destination (C:\Program Files\nodejs\), simply click "Next."
  5. Select installation options

    • The default settings are fine, so click "Next."
  6. Run the installation

    • Click "Install" to start the installation.
    • If a User Account Control (UAC) dialog appears, click "Yes."
  7. Finish the installation

    • Once the installation is complete, click "Finish" to exit the installer.
  8. Verify the installation

    • Open the Command Prompt (or PowerShell) and execute the following commands to ensure that Node.js and npm (Node Package Manager) have been installed correctly:
      node -v
      npm -v
      
    • If the version numbers are displayed, the installation is successful.

This completes the installation of Node.js on Windows.

What is npm?

npm (Node Package Manager) is a package management tool and repository for Node.js.
Since npm is installed automatically when you install Node.js, you can use it without any extra steps.

yarn

yarn
  • Downloading and installing Yarn

    1. Access the official Yarn website.

    2. Download the installer: Download the latest Windows installer (yarn-setup.msi) from the installer page.

    3. Run the installer: Run the downloaded installer and follow the on-screen instructions to install it.

    4. After installation, execute the following command to verify the Yarn version:

    yarn --version
    
  • Installation using npm

    1. If npm is already installed, execute the following command to install Yarn:
    npm install --global yarn
    
    1. After installation, execute the following command to verify the Yarn version:
    yarn --version
    

Python

Go

Discussion