Closed
Description
Version
18.17.0
Platform
Mac OS (aarm64 & intel)
Subsystem
No response
What steps will reproduce the bug?
Using node 18.17.0 and installing yarn 1.x.x will cause this error.
How often does it reproduce? Is there a required condition?
- Every time after installing 18.17.0 from 18.16.1. So far, this issue is specific to a monorepo being used.
- I'm having a hard time replicating it on init projects that use the npm registry. The project with the issue uses a artifactory jfrog registry which points to a couple other internal artifactory registries.
Other tips to replicating this issue:
- If you are swapping node from a minor version make sure to reset your yarn cache to replicate the issue 100% of the time. IE
yarn cache clear
. Project level cache should be enough.
Example commands
nvm install 18.17.0; nvm use 18.17.0; npm i -g yarn; yarn cache clean; yarn;
What is the expected behavior? Why is that the expected behavior?
yarn should install dependencies and resolve those urls.
What do you see instead?
Error and unexpected error has occurred "Invalid Url".
Additional information
If this is an expected behavior change 18.16 - 18.17.0 (breaking yarn package manager on 1.x.x) we can close this issue.
Yarn 1.x.x is still used in many projects so this may affect a bunch of users.
Temp workarounds
- Stay on Node 18.16 and lock the version. IE with .nvrmc or _node-version change it from
18
to18.16