How to Install Node.js on Windows 11: This is a step-by-step tutorial on how to install Node JS and NPM on Windows 11 or 10 Node.js is an open-source server environment.
How to Install Node.js on Windows 11/10 PC
To install Node.js on Windows 11, you can follow these steps:
- Visit the official Node.js website: https://nodejs.org/
- On the homepage, you will see two versions available for download: “LTS” (Long-Term Support) and “Current.” The LTS version is recommended for most users, as it provides stability and long-term support. Click on the “LTS” download button to proceed.
- Once the installer file (.msi) is downloaded, locate the file and double-click on it to run the installer.
- The Node.js Setup Wizard will open. Click “Next” to continue.
- Read and accept the license agreement, then click “Next.”
- Choose the destination folder where Node.js will be installed, or you can leave the default location, and then click “Next.”
- On the “Select components” screen, you can choose additional features to install along with Node.js. It’s recommended to leave the default selections as they are unless you have specific requirements. Click “Next” to proceed.
- On the “Select start menu folder” screen, you can choose a different folder name for the start menu shortcuts or leave it as the default. Click “Next.”
- The installer will ask you to choose the features of Node.js to install. It’s recommended to leave the default options checked, which include “Node.js runtime,” “npm package manager,” and “Add to PATH.” The “Add to PATH” option ensures that you can use Node.js and npm from any command prompt or PowerShell window. Click “Next.”
- Finally, click “Install” to begin the installation process.
- The installer will extract the necessary files and install Node.js on your system. This process may take a few moments.
- Once the installation is complete, you will see a “Completed” message. Ensure that the “Automatically install the necessary tools” option is checked, as it will install the necessary build tools for Node.js to work correctly. Click “Next” to finish the installation.
- You can now close the Node.js Setup Wizard.
- To verify that Node.js is installed correctly, open the Command Prompt or PowerShell and type the following command to check the Node.js version:
If Node.js is installed properly, it will display the version number.
- You can also verify the npm (Node Package Manager) version by typing the following command:
It should display the npm version number if installed correctly.
That’s it! You have successfully installed Node.js on Windows 11. You can now start building and running Node.js applications on your system.