

Install packages from Solution Explorer (Node.js)įor Node.js projects, the easiest way to install npm packages is through the npm package installation window. For detailed steps, see Create a Node.js and Express app.įor existing Node.js projects, use the From existing Node.js code solution template or the Open folder (Node.js) project type to enable npm in your project.

You need the Node.js development workload and the Node.js runtime installed to add npm support to your project. These features work together and synchronize with the project system and the package.json file in the project.

npm command in the Node.js Interactive Window
