-
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
yarn unlink package
doesn't restore node_modules/package
#1957
Comments
Seem to be the same issue #937 |
+1, same issue here! |
From the docs (https://yarnpkg.com/en/docs/cli/unlink#toc-yarn-unlink-package) this seems to be expected behaviour. However, as noted in #937 running |
Yes, it seems I have to run (As a possible improvement, I think |
|
it works with a force install, but it surprises me why it doesn't with a normal |
Running |
This has been going on since 2016? I'm having the same issue with yarn 1.12.3. If a |
I don't think That said, |
I just switched my terminal to Windows PowerShell and all works) |
None of the suggestions above work for yarn v2 or v3 - most of those flags don't even exist. The only option is the going nuclear:
|
After
yarn link package
yarn creates symlink node_module/package, but afteryarn unlink package
it just removesnode_module/package
and not places there hard installed version.Probably expected that it should find in cache or fetch a correct version from registry and replace removed symlink with it.
The text was updated successfully, but these errors were encountered: