Search posts, tags, users, and pages
This article explains the problems with setting up a monorepo using npm workspaces, and how they can be solved with pnpm workspaces.
Edrick Leong
@edrick · Perth, Australia
Software Engineer in Perth
Markdown supported · ⌘↵ to post
Tirtha Guha
Npm has system level cache, ~/npm on posix and %LocalAppData%/npm-cache on Windows.
~/npm
%LocalAppData%/npm-cache
If a dependency+version matches, npm pulls the package from this cache, instead of over the internet.
Thanks Tirtha for pointing this out!
I've removed the third point about npm being slow due to not having a global cache.
Tirtha Guha
Npm has system level cache,
~/npmon posix and%LocalAppData%/npm-cacheon Windows.If a dependency+version matches, npm pulls the package from this cache, instead of over the internet.