I am work on monorepo stuff, and found that some guys use pnpm install
to install packages in workspace, but some other use pnpm add
.
in the pnpm docs, its seem like the same between add
and install
command, but there are some different options like --offline
(for install
)、--workspace
(for add
), and if I use pnpm install [pkg name] --workspace
, its work normally.
so what the different between pnpm install
and pnpm add
?