How to Download and Install NodeJS on Windows 10/11 [ 2024 Update ] Complete Guide

Описание к видео How to Download and Install NodeJS on Windows 10/11 [ 2024 Update ] Complete Guide

How to Download and Install NodeJS on Windows 10/11 [ 2024 Update ] Complete Guide

Here’s a simple step-by-step guide to download and install *Node.js* on **Windows 10/11**:

Step 1: Download Node.js
1. Go to the [official Node.js website](https://nodejs.org/).
2. You’ll see two versions:
**LTS (Long Term Support)**: Recommended for most users (Stable version).
**Current**: Includes the latest features but may not be as stable.
3. Click on *LTS* to download the recommended stable version (e.g., Node.js 18.x.x).

Step 2: Install Node.js
1. Once the installer is downloaded (`.msi` file), open it.
2. In the Node.js Setup Wizard:
Click *Next* to begin.
Accept the License Agreement.
Choose the installation location (the default path is usually fine).
Select the components to install (leave all options checked for a full installation).
Click **Next**, and then **Install**.
3. Once the installation completes, click **Finish**.

Step 3: Verify Node.js Installation
1. Open *Command Prompt* or *PowerShell* (search for either in the Start menu).
2. Type the following command to check the Node.js version:
```
node -v
```
This should display the version of Node.js that you just installed (e.g., `v18.x.x`).
3. Next, check if *npm* (Node Package Manager) was installed with Node.js by typing:
```
npm -v
```
This should display the version of `npm` (e.g., `8.x.x`).

Step 4: Run a Simple Node.js Test
1. Create a new folder (e.g., `NodeTest`) anywhere on your computer.
2. Open *Command Prompt* or *PowerShell* and navigate to that folder using the `cd` command. For example:
```
cd C:\Users\YourUsername\NodeTest
```
3. In the folder, create a simple *JavaScript* file:
```
echo console.log("Hello, Node.js!") / test.js
```
4. Run the file with Node.js:
```
node test.js
```
If everything is installed correctly, it should display `Hello, Node.js!` in the terminal.

---

That's it! You've successfully downloaded and installed Node.js on Windows 10/11. You can now start building JavaScript applications on your machine.

Комментарии

Информация по комментариям в разработке