When we build software, we don't like to re-invent everything. So we package-up common solutions to problems, such as a web server. Everyone needs a web server, so bundle it up so others can re-use it and now we call that a package.
But how do you use it?
Well, you could download it as a zip file. But that's a nuisance to do that all the time. Especially if you want to use 20 or 50 packages in what you're building. And how do you keep them up-to-date? What if you need to remove them? And how do you inform other people what packages your software is using?
The answer is a package manager. It let's you easily install, update and remove packages from your software with simple commands.
View all comments
Show parent comment
1
u/Locust377 full-stack Feb 23 '20
NPM is a package manager.
When we build software, we don't like to re-invent everything. So we package-up common solutions to problems, such as a web server. Everyone needs a web server, so bundle it up so others can re-use it and now we call that a package.
But how do you use it?
Well, you could download it as a zip file. But that's a nuisance to do that all the time. Especially if you want to use 20 or 50 packages in what you're building. And how do you keep them up-to-date? What if you need to remove them? And how do you inform other people what packages your software is using?
The answer is a package manager. It let's you easily install, update and remove packages from your software with simple commands.