pnpm package manager
Import
·
Oct 18, 2023
·
article
TIL
pnpm is an alternative to either npm or yarn
How does it work?
Rather than installing a node_modules package for every project, it sets up a local store on your machine.
For instance, any project that may use vite will draw from the same source.
pnpm then creates links to individual directories that need access to those files. But you’re only installing them once on your machine.
Commands
Install the app (packages) locally
pnpm install
Run local server
pnpm run dev
Build for production
pnpm run build
Preview build
pnpm run preview
pnpm docs:
Source:
View original source
https://www.dancovic.com/2023/10/pnpm-package-manager.html