I'd like to see a list of all yarn linked packages everywhere on my computer and then run a command to unlink all of them. Can anyone help me out here?
Thanks!
To unlink a package that was symlinked during development in your project, simply run yarn unlink [package] . You will need to run yarn install --check-files to re-install the package that was linked, for more info see issue 1957.
yarn add: the yarn add command is a command you run in your terminal when you want to add a package to your current package (project) yarn init: we used this command in our tutorial on getting started, this command is to be run in your terminal. It will initialize the development of a package.
yarn link [package...] Use yarn link [package] to link another package that you'd like to test into your current project. To follow the above example, in the react-relay project, you'd run yarn link react to use your local version of react that you previously linked.
You have to uninstall it using the same package manager that you used to install.
Don't know if this is the yarn way to do things, but I just :
rm -rf ~/.config/yarn/link/*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With