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.