-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug?]: No migration troubleshooting docs for error ... isn't supported by any available resolver
#5085
Comments
This would be awesome. I also have this issue by upgrading to Yarn 3.3.0
The only resolve version in my yarn.lock is 1.22.1 so 1.9+ But I can run yarn install successfully with PnP... somehow looks strange to me |
I'm having the exact same issue upgrading from yarn v1 to v3 using a private registry, and I think it has to do with the
I know that yarn requires these kinds of urls to have
I found an open issue against artifactory that mentioned how their url schema is somewhat nonstandard, but that issue doesn't mention the hash at the end. I'm not 100% sure what that hash is, or if it's returned to yarn's resolver, but I suspect it might be. Yarn's resolver might be attempting to parse it, but ending up with Would anybody on the yarn team have more insight into this? |
Good news and bad news: I think this issue pops up specifically when upgrading yarn v1 to v3 in a repo that has a v1-style
Urldecoding that new
I'm not sure if there's an easy way to solve this without blowing away the lockfile, though. I tried removing the hashes from the end of each url in the old lockfile, but that gave me the same error as before. Update: SolutionI may have gotten it working by replacing all of those urls in the v1 For scoped packages:
For replacements: registry is
For unscoped packages:
For replacements: registry is
Once I make those replacements in |
Hi @heyheyhello @florianeichin @nelsonpecora, I think I have same/similar issue in #5156, Do you still have repo where you could try my fix and see if it fixes this problem? Either apply patch from #5156 and build yarn or replace |
I have updated yarn from v1 to version 4.1.1 and I have the same error when trying to install a package from gitlab registry(https://mydomain.ru/api/v4/projects/97/packages/npm/@myscope/ui/-/myscope/ui-2.8.8.tgz#218d812a52e0dda867846812c7bc628b016dd4ba) Error: @myscope/ui@npm:^2.8.8: @myscope/ui@npm:2.8.8::__archiveUrl=https%3A%2F%2Fmydomain.ru%2Fapi%2Fv4%2Fprojects%2F97%2Fpackages%2Fnpm%2F%40myscope%2Fui%2F-%2F%40myscope%2Fui-2.8.8.tgz%23 isn't supported by any available resolver After applying the patch from @mcenkar comment, the installation worked, but any other commands give an error. yarn dev |
@nuykon same problem here with JFrog artifactory. I wonder what that %23 is at the end of the URL and where does it come from? Public registeries work just find and private ones only with Yarn1. |
I've opened the PR for |
Self-service
Describe the bug
Hi I'm trying to update our repo from Yarn 1.22 to Yarn 3 and was following the migration guide: https://yarnpkg.com/getting-started/migration
This is the error I'm getting:
I checked the https://yarnpkg.com/getting-started/migration#troubleshooting and searched GH issues for
isn't supported by any available resolver
but was unable to an existing issue.Maybe https://github.com/yarnpkg/berry/blob/master/packages/gatsby/content/getting-started/migration.md could be updated with docs on how to debug/proceed when this happens?
This is a bug with documentation, since I see your issue template says Note that bugs without minimal reproductions will be closed as non-actionable. and I don't have a minimal repro case for the failed install; that's the problem. This is a failed migration of a private monorepo with 15 packages and 20000 lines of yarn.lock - I don't know where to start troubleshooting to be able to create a minimal repro case, and I think the docs could help with that. I understand that ideally you don't want users to need to do this, but it will be necessary to some people - there are a dozen teams at my company all using yarn-classic v1 because they've run until similar errors and given up. I think have good troubleshooting docs could help.
I'm willing to submit a docs PR if I can gather some troubleshooting steps that would help others. Right now my best guess is "Clone the yarn berry repo following CONTRIBUTING.MD, run
yarn build:cli --no-minify
, ...somehow attach that to a Node Debugger, set breakpoints, re-run the erroringyarn install
again". Is this the right track? Thank you!To reproduce
.yarnrc.yml
:Environment
System: OS: macOS 12.6 CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz Binaries: Node: 16.14.0 - /private/var/folders/qv/pc1l_8w90b18nk2f5ljqf4hh0000gp/T/xfs-50824e24/node Yarn: 3.3.0 - /private/var/folders/qv/pc1l_8w90b18nk2f5ljqf4hh0000gp/T/xfs-50824e24/yarn npm: 8.3.1 - /usr/local/bin/npm npmPackages: jest: ^26.0.0 => 26.6.3
Additional context
No response
The text was updated successfully, but these errors were encountered: