npm

What NPM does ?

Introduction#

It allows you to easily manage different packages (modules) and keep track of which version you’ve installed.

Initialize a new NPM project

npm init

This will initialize a new NPM project for you - just press enter until it stops asking you questions.

Now you’ll notice that you have a new file called package.json. This file will, among other things, keep track of which packages or modules you’ve installed in your project.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow