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
- 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
- Open Visual Studio Code and select open Folder then select the folder you just created
- On the top navbar, select "Terminal" -> "New Terminal" or control + shift + ' to open a new terminal.
- In the terminal, write the following command: npm install -g npm

- Download and install Node.js from the following link: https://nodejs.org/en/download
- 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:
