-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symlinking packages may lead to invalid states #937
Comments
This still seems to be an issue with yarn v0.18.1. |
@andybluntish only workaround I've found is to either delete the node_modules folder entirely, or to |
You can also workaround by deleting yarn.lock, instead of nuking node_modules |
The following command was a sufficient workaround for me:
https://yarnpkg.com/en/docs/cli/install#toc-yarn-install-check-files |
Can repro. It should at least check if symlink exists |
Any updates here? |
I can still reproduce this with 1.8.0 |
Still problem v1.12.1 |
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
An unlinked (but added) package is missing from node_modules and yarn will not install.
If the current behavior is a bug, please provide the steps to reproduce.
Link a random package
As a side note, yarn will not install the package's dependencies. The default npm client would do that. I'm not sure whether that's expected or not given that the linking process is slightly different already.
Create a new directory and use the linked package from there
Add the package again but this time via
add
The linked package is still used at this point (and that's consistent with the default client).
Unlink the package
This will remove the link from node_modules as expected.
Run yarn to get the added (locked) package back
At this point, the package is not present in node_modules but yarn seems to be okay with that and won't install it. Doing
yarn add co
again will install it.What is the expected behavior?
The package should be installed after unlinking it and running
yarn
.Please mention your node.js, yarn and operating system version.
Node.js 6.7.0
Yarn 0.15.1
Ubuntu 12.04
The text was updated successfully, but these errors were encountered: