W3cubDocs

/Yarn

yarn unlink

Unlink a previously created symlink for a package.

To remove a symlinked package created with yarn link, yarn unlink can be used.

Run yarn unlink in the folder that was previously used to create a link.

To unlink a package that was symlinked during development in your project, simply run yarn unlink [package]. You will need to run yarn or yarn install to re-install the package that was linked.

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".

Also see:

  • yarn link: symlink a package for local development.

© 2016–present Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/en/docs/cli/unlink