How to install NPM on visual studio code - NextensArelB/SwaggerGenerationTool GitHub Wiki

Installing NPM on your visual studio code

To start using NPM you need to have Node.js and NPM installed locally on your system. This is a relatively straightforward process. Using the steps below you will be able to install NPM and Node.js

  1. Create a new folder that will hold a VS code project. Preferably with a path that does not contain any spaces as that can cause issues later. For example C://Repos/ProjectName
  2. Open Visual Studio Code and select open Folder then select the folder you just created
  3. On the top navbar, select "Terminal" -> "New Terminal" or control + shift + ' to open a new terminal.
  4. In the terminal, write the following command: npm install -g npm

image.png

  1. Download and install Node.js from the following link: https://nodejs.org/en/download
  2. To confirm that node.js and npm are installed. Type the following commands into the VS code terminal:
  • node -v
  • npm -v

Both of these should respond with the corresponding version number (Verify that your version is 18.15.0 or newer). See image below for an example:

image.png

⚠️ **GitHub.com Fallback** ⚠️