How to Install Node & Run NPM in VS Code?
Last Updated :
03 May, 2025
Node.js is an open-source, server-side JavaScript runtime environment built on the V8 engine. It allows developers to execute JavaScript code outside of a web browser. In this article, we will see how to install Node.js and NPM and install packages in VS Code using NPM.
Steps to Install NodeJS and NPM in VS code
Step 1: Visit the Node.js website and download the Windows installer.
Step 2: According to your operating system, install the particular installer by clicking the installer (Windows installer, macOS installer).

Step 3: Complete the setup (install Node.js and npm):
NodeJS Setup
accept the terms and nextStep 4: Choose the desired path where you want to install or leave it default.
- By clicking on the Next button, you will get a custom page setup on the screen. Make sure you choose npm package manager, not the default of NodeJS runtime . This way, we can install Node and NPM simultaneously.
- The following features will be installed by default Node.js runtime and Npm package manager.
- By clicking next you are all set click the install button and you are done with installation of Node.js and npm.
Destination folder
click next
You are ready
Step 5: Check for installation
Follow the steps to check that Node.js and npm is properly installed in your device. open command prompt (cmd)
command promptStep 6: To check Node installation, type Node -v command in command prompt. After giving the command you will see the Node version in the output in this case v20.11.1 is the version installed in my device, if you are not able to see check for the installation process again or re-install.

Step 7: To check NPM installation, type npm -v command in command prompt. After running the command you will see the version of npm in my case it is 10.2.4. if not check for the installation or reinstall it.

Now you are ready to use Node and npm in vs code. You can run your file using Node in the vscode terminal

Similar Reads
How to Install Git in VS Code? Git is a free and open-source distributed version control system. It is designed to manage every type of project even a small or a large project with good speed and efficiency. It is more focused on distributed development of software so that more developers can have the access to the source code an
2 min read
How to Install Node.js and npm on Ubuntu? If you're developing JavaScript applications on Ubuntu, knowing how to install Node.js on Ubuntu is essential. Node.js is a powerful runtime environment that enables server-side scripting, while npm, the Node Package Manager, allows you to manage your project's dependencies easily. This guide will w
7 min read
How to install the previous version of Node and npm? Installing a specific version of Node.js and npm can be essential for compatibility reasons or to work with legacy projects. In this guide, weâll go through the steps to install an older version of Node.js and npm on your system.What is NodeJS?Node is a JavaScript runtime(server-side) built on the V
3 min read
How to Install Express in a Node Project? ExpressJS is a popular, lightweight web framework for NodeJS that simplifies the process of building web applications and APIs. It provides a robust set of features for creating server-side applications, including routing, middleware support, and easy integration with databases and other services.Be
2 min read
How to Install Visual Studio Code in Red Hat Linux In this post, we will see How to Install Visual Studio Code in Red Hat Linux. Visual Studio Code (VSCode) is an important, open-source law editor that has gained immense fashionability among inventors for its inflexibility, expansive extension library, and integrated development terrain( IDE) featur
5 min read