Jump to content

Pnpm Node Package Manager

From Torben's Wiki
Revision as of 20:40, 18 April 2026 by Torben (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Commands

# install packages locally
pnpm install
# add package
pnpm add vue
# add dev package
pnpm add -D vitest

# update all packages to latest minor version
pnpm up
# update all packages to latest version
pnpm up --latest

# run package
pnpm exec vitest --watch=false

# run script (defined in package.json)
pnpm run myscript

# run without installing to repo
pnpx cowsay Moin

# check used packages for vulnerabilities
pnpm audit
pnpm audit --fix
pnpm install