pnpm

Fast, disk space efficient package manager for Node.js.

TLDR

Interactively create a package.json file

$ pnpm init
copy

Download all the packages listed as dependencies in package.json

$ pnpm install
copy

Download a specific version of a package and add it to the list of dependencies in package.json

$ pnpm install [module_name]@[version]
copy

Download a package and add it to the list of dev dependencies in package.json

$ pnpm install --dev [module_name]
copy

Download a package and install it globally

$ pnpm install -g [module_name]
copy

Uninstall a package and remove it from the list of dependencies in package.json

$ pnpm uninstall [module_name]
copy

Print a tree of locally installed modules

$ pnpm list
copy

List top-level [g]lobally installed modules

$ pnpm list -g --depth=[0]
copy

Copied to clipboard
Dodo Farming