pnpm

pnpm​​ (Performant npm) is a high-performance JavaScript package manager designed to solve the disk space, installation speed, and dependency management limitations of traditional tools (e.g., npm/yarn).

Install

Install via mise

mise use pnpm@latest
pnpm --version
10.13.1

Setup

❯ pnpm setup
Appended new lines to /home/zjh/.zshrc

Next configuration changes were made:
export PNPM_HOME="/home/zjh/.local/share/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac

To start using pnpm, run:
source /home/zjh/.zshrc

Registry

❯ pnpm get registry
https://registry.npmjs.org/
# taobao minitor
❯ pnpm config set registry https://mirrors.cloud.tencent.com/npm/
# tencent mirror
❯ pnpm config set registry https://registry.npmmirror.com