pnpm install
Aliases: i
pnpm install is used to install all dependencies for a project.
In a CI environment, installation fails if a lockfile is present but needs an update.
Inside a workspace, pnpm install installs all dependencies in all the
projects. If you want to disable this behavior, set the recursive-install
setting to false.
TL;DR
| Command | Meaning | 
|---|---|
| pnpm i --offline | Install offline from the store only | 
| pnpm i --frozen-lockfile | pnpm-lock.yamlis not updated | 
| pnpm i --lockfile-only | Only pnpm-lock.yamlis updated | 
Options
--force
Force reinstall dependencies: refetch packages modified in store, recreate a lockfile and/or modules directory created by a non-compatible version of pnpm. Install all optionalDependencies even they don't satisfy the current environment(cpu, os, arch).