跳到主内容
版本:Next

pnpm unlink

取消链接一个系统范围的package (相对于 pnpm link).

If called without arguments, all linked dependencies will be unlinked inside the current project.

这类似于 yarn unlink,但 pnpm 会在删除外部链接后重新安装依赖项。

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 <package_selector>

阅读更多有关 filter 的内容。