pnpm
Commands
# Install
npm install -g pnpm@latest-10
# Where is the global directory
pnpm root -g
Quick start
- Remove
node_modules
- [Optional] Create
pnpm-workspace.yaml
if you use workspaces - Run
pnpm import
- Remove
package-lock.json
- Run
pnpm install
- Replace all
npm run xxx
commands topnpm run xxx
rm -rf node_modules/
pnpm import
rm -f package-lock.json
pnpm install