aboutcode-org / aboutcode-org/scancode-toolkit

Test we can support very large npm module dependencies and other npm-related less common layouts

未關閉
#3,872 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

See https://dev.to/atian25/in-depth-of-tnpm-rapid-mode-how-could-we-fast-10s-than-pnpm-3bpp

>
> Dependencies Installation
>
> Let's take vuepress@1.9.2 as an example. It has about 1000 distinct dependencies, taking up 170MB disk spaces with 18542 files.
>
> But if we install the dependencies in a nested way following npm@2's implementation, we'll end up installing as many as 3626 dependency packages. There are more than 2000 redundant dependencies. And the actual disk footprint is 523MB with 60257 files.

See also:
- https://rushjs.io/pages/advanced/phantom_deps/
- https://rushjs.io/pages/advanced/npm_doppelgangers/
- https://github.com/microsoft/rushstack/tree/main/apps/lockfile-explorer

> A "phantom dependency" occurs when a project uses a package that is not defined in its package.json file.

- pnpm links

> Given so many side effects of the 'flattening dependencies', pnpm proposed an alternative solution, by means of symbolic + hard links.

- cnpm, pnpm-like package manager

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。