跳到主内容
版本:9.x

pnpm unlink

Unlinks a system-wide package (inverse of pnpm link).

如果不带参数调用,则当前项目内的所有链接的依赖项会被取消链接。

This is similar to yarn unlink, except pnpm re-installs the dependency after removing the external link.

提示

If you want to remove a link made with pnpm link --global <package>, you should use pnpm uninstall --global <package>. pnpm unlink only removes the links in your current directory.

配置项

--recursive, -r

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

--filter &lt;package_selector>

Read more about filtering.