Using npm’s command line tool you can do three tasks:
npm automatically gets installed when you install nodejs on your system.
Now downloading a package is very easy and straighfirward with npm
You just have to open terminal and run :
npm stores the downloaded packages in the folder ‘node_modules’ of your project
Then in your project you can simply use ‘require’ to use the package