在线文档教程

yarn unlink

取消连接Yarn

取消链接先前为包创建的符号链接。

使用yarn link删除创建的符号链接包,可以使用yarn unlink

yarn unlink

在以前用于创建链接的文件夹中运行yarn unlink

yarn unlink [package]

要取消在项目开发过程中符号链接的软件包,只需运行yarn unlink [package]即可。您需要运行yarnyarn install重新安装已链接的软件包。

Continued example from the yarn link documentation: assume two folders react and react-relay that are located next to each other with react linked into the react-relay project:

$ cd react $ yarn unlink yarn link vx.x.x success Unregistered "react".

$ cd ../react-relay $ yarn unlink react yarn link vx.x.x success Unregistered "react".

另请参阅:

  • yarn link:为本地开发提供符号链接包。