Skip to content
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

Replace Yarn v1 #11089

Open
timfish opened this issue Mar 13, 2024 · 2 comments
Open

Replace Yarn v1 #11089

timfish opened this issue Mar 13, 2024 · 2 comments

Comments

@timfish
Copy link
Collaborator

timfish commented Mar 13, 2024

Problem Statement

Yarn v1 hasn't been supported for a long time and no longer gets bug fixes. At this point it's passed its best and struggles to resolve dependencies where newer options do not!

Solution Brainstorm

Maybe use Yarn v4?

The main blocker seems to be that Yarn v4 is only distributed via corepack and Volta isn't compatible as it doesn't expose the corepack binary.

@timfish timfish changed the title Stop using Yarn v1 Replace Yarn v1 Mar 13, 2024
@csvan
Copy link

csvan commented Mar 16, 2024

If it is any help, we replaced Yarn1 with regular npm 10 and the transition was near seamless.

@timfish
Copy link
Collaborator Author

timfish commented Mar 16, 2024

With all packages cached locally, lock file created and after deleting node_modules on an Mac M1 Pro:

Yarn v1

First install - 61 seconds
Second install - 15 seconds

Yarn v4

First install - 51 seconds
Second install - 5 seconds

npm v10

First install - 75 seconds
Second install - 20 seconds

pnpm v8

First install - Fails while running post install scripts at 80 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants