Re:Bun adds pnpm-style isolated installation mode
by markl42 on Saturday July 19, 2025 @04:52AM
(#44613749)
Can someone explain what this does differently to the status quo under the hood?
[ Parent
| on HN ]
Re:Bun adds pnpm-style isolated installation mode
by carlosneves on Saturday July 19, 2025 @07:29AM
(#44614578)
> When using npm, all dependencies for a project are installed in a single node_modules directory. This means that if two packages depend on different versions of the same package, the one that is installed last will be used, which can lead to compatibility issues. This is known as "dependency hell" and can make it difficult to manage the dependencies of a project.
> pnpm's symlink feature addresses this problem by allowing different versions of the same package to be installed side-by-side, and linking them to their dependents through symlinks. This helps to ensure that the correct version of a package is used for each dependent, reducing the chances of compatibility issues and making it easier to manage dependencies.
From the last issue linked in the PR (https://github.com/oven-sh/bun/issues/1760)