Understand anything ?
A package manager or package-management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer’s operating system in a consistent manner. (Wikipedia)
So basically npm is a system what we can use to do different things with our codebase to manage properly. https://www.npmjs.com/
Now it’s time to use npm. We can start configure a project using
It will prompt up some question and most basically we are going to say yes to them.
So shortcut way is just add -yes after everything. like –
npm init -yes
Now we’ll see there is a new file call
package.json we can see all the data about the npm created for us. Now we’re ready to use npm.
We are going to use express-js (node js framework) for further tutorials. Now let’s install it now current project.
Honestly it’s so easy. Just use the cmd and type npm install express
Wow!!! You’ve installed a package using npm!