Hacker News new | ask | show | jobs
by photonios 2274 days ago
Not sure about NPM, but Yarn, even v1 without PNP caches all packages and simply copies the package from the local cache into your `node_modules`.

It doesn't do symlinks (PNP mode does) because this doesn't always work well and it definitely doesn't work well on Windows.

See: https://classic.yarnpkg.com/en/docs/cli/cache/