Re: Exactly the problem that DLL hell causes.
"DLL hell" cuts both ways, apps bundling their own (out of date, insecure) versions of libraries, as well as apps assuming a certain version is installed at system level. That second situation is exacerbated by the poor support for versioning of DLLs.
As for pnpm, looking at how that works it strikes me as a complete clusterfuck. Just as I'd expect from JavaScript.