anchor
anchor copied to clipboard
Can switch from yarn to pnpm?
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.
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.
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.
After a preliminary look at the code, it seems that there might be significant changes needed.
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.
I think this should be solved by #3328
Yeah, as the previous comment mentioned, you'll be able to run:
anchor init <NAME> --package-manager pnpm