anchor icon indicating copy to clipboard operation
anchor copied to clipboard

Can switch from yarn to pnpm?

Open lispking opened this issue 1 year ago • 4 comments

Can you switch from yarn to pnpm? The installation speed of yarn is still relatively slow, which is not very user-friendly for the overall user experience.

lispking avatar Oct 10 '24 01:10 lispking

Yes, you can switch to pnpm. Someone mentioned they made it work using pnpm and bun in https://github.com/coral-xyz/anchor/issues/3080#issuecomment-2329363893.

acheroncrypto avatar Oct 10 '24 12:10 acheroncrypto

The meaning is that "anchor init xxx" should be replaced during the process, rather than waiting for the environment to be ready before making the change.

lispking avatar Oct 10 '24 12:10 lispking

After a preliminary look at the code, it seems that there might be significant changes needed.

lispking avatar Oct 10 '24 12:10 lispking

The meaning is that "anchor init xxx" should be replaced during the process, rather than waiting for the environment to be ready before making the change.

You can pass in --no-install to skip installing the JS dependencies.

acheroncrypto avatar Oct 10 '24 12:10 acheroncrypto

I think this should be solved by #3328

arihantbansal avatar Oct 28 '24 04:10 arihantbansal

Yeah, as the previous comment mentioned, you'll be able to run:

anchor init <NAME> --package-manager pnpm

acheroncrypto avatar Oct 28 '24 09:10 acheroncrypto