Skip to main content
Version: 4.x

pnpm unlink

Alias: dislink

Unlinks a package. Like yarn unlink but pnpm re-installs the dependency after removing the external link.

If called without arguments, all linked-in dependencies will be unlinked.

Synopsis#

pnpm unlink [-r] [--filter <package_selector>] [<pkg>...]
pnpm recursive unlink [--filter <package_selector>] [<pkg>...]
pnpm multi unlink [--filter <package_selector>] [<pkg>...]

Options#

--recursive, -r#

Unlink in every package found in subdirectories or in every workspace package, when executed inside a workspace.

--filter <package_selector>#

Read more about filtering.

Last updated on by Zoltan Kochan