Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a command to unlink all yarn packages? yarn unlink all

Tags:

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!

like image 273
tnrich Avatar asked Oct 19 '19 01:10

tnrich


People also ask

How do you unlink a yarn package?

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.

What does the yarn Command do?

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.

How do you link a yarn 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.

How do I disable yarn?

You have to uninstall it using the same package manager that you used to install.


1 Answers

Don't know if this is the yarn way to do things, but I just :

rm -rf ~/.config/yarn/link/*

like image 68
Loheek Avatar answered Oct 17 '22 05:10

Loheek