r/webdev • • Jan 25 '20

Monthly Getting Started / Web Dev Career Thread

[deleted] — view deleted post

121 Upvotes

233 comments sorted by

View all comments

Show parent comment

1

u/darksparkone Feb 22 '20

What background do you have? It may help to provide references based on the knowledge you have.

In simple words, NPM is a library for 3d--party modules. When you need a module that provides a weather forecast, API integration, UI components, specific search or hashing algorithm, just about anything - you use NPM to get it from.

A lot of modules have further dependencies on other modules, which they would download from NPM as well, and so on.

Technically you could store 3d-party modules locally (but this would prevent you from easy updates), or download those from other locations (which may become inaccessible), but NPM is centralized storage and a default place to go both for backend and frontend applications.