dev-blog

Yes — pnpm requires Node.js. pnpm is a JavaScript package manager, so it cannot run without Node.js.

Minimum requirement


Why Node.js is required


✅ Use nvm (best & safest)

This avoids system-level issues and lets you switch Node versions easily.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

Reload shell:

source ~/.bashrc   # or ~/.zshrc

Install Node LTS:

nvm install --lts
nvm use --lts

Verify:

node -v
npm -v

Once Node is installed:

corepack enable
corepack prepare pnpm@latest --activate

Verify:

pnpm -v

Summary

✔ Node.js must be installed first ✔ Use nvm + Corepack for the cleanest setup ✔ Avoid Ubuntu’s apt nodejs (often outdated)

If you want, tell me:

I’ll suggest the best Node + pnpm setup for your case.