NPM package downloads #145003
-
Curious how NPM tracks downloads in the dependency tree. For example, if NPM package A depends on package B, will the downloads of package A be counted as downloads for package B? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This link (though archived) can give you a perspective. In summary, when a package is downloaded directly from the npm registry (be it a dependent or a direct fetch), its download count increases. However, various factors, such as local caching, mirrors, or proxies, can bypass direct interactions with the registry. As a result, these scenarios do not contribute to the package’s download count. |
Beta Was this translation helpful? Give feedback.
This link (though archived) can give you a perspective.
In summary, when a package is downloaded directly from the npm registry (be it a dependent or a direct fetch), its download count increases. However, various factors, such as local caching, mirrors, or proxies, can bypass direct interactions with the registry. As a result, these scenarios do not contribute to the package’s download count.