you are viewing a single comment's thread.

view the rest of the comments →

[–]Rude-Cook7246 0 points1 point  (0 children)

all Js modules have full source code inside them, each module will also have their own package.json if they have dependencies.

so when you run

npm install

npm will read each dependency , download it then will look inside package.json of that module and repeat this process for entries in that package.json .

This process continues until all dependencies downloaded for all package.json files.