Forrest logo
back to context overview

pnpm

List of commands for pnpm:

  • pnpm:packages:remove Uninstall a package and remove it from the list of dependencies in `package.json`.
    $ pnpm remove ${module_name}
    try on your machine
    explain this command
  • pnpm:tldr:05d57 pnpm: Download a package and install it [g]lobally.
    $ pnpm add -g ${module_name}
    try on your machine
    explain this command
  • pnpm:tldr:5d549 pnpm: Download a package and add it to the list of [D]ev dependencies in `package.json`.
    $ pnpm add -D ${module_name}
    try on your machine
    explain this command
  • pnpm:tldr:7eae3 pnpm: Download all the packages listed as dependencies in `package.json`.
    $ pnpm install
    try on your machine
    explain this command
  • pnpm:tldr:95a6d pnpm: Print a tree of locally installed modules.
    $ pnpm list
    try on your machine
    explain this command
  • pnpm:tldr:9643a pnpm: List top-level [g]lobally installed modules.
    $ pnpm list -g --depth=${0}
    try on your machine
    explain this command
  • pnpm:tldr:f9ff0 pnpm: Create a `package.json` file.
    $ pnpm init
    try on your machine
    explain this command
  • pnpm:tldr:fd030 pnpm: Download a specific version of a package and add it to the list of dependencies in `package.json`.
    $ pnpm add ${module_name}@${version}
    try on your machine
    explain this command
back to context overview