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

yarn install fails with no yarn installed #3298

Open
nickfrosty opened this issue Oct 8, 2024 · 4 comments
Open

yarn install fails with no yarn installed #3298

nickfrosty opened this issue Oct 8, 2024 · 4 comments
Labels

Comments

@nickfrosty
Copy link

when running anchor init to scaffold a new anchor workspace the command fails on the yarn install step with the following error:

Error: yarn install failed: No such file or directory (os error 2)

to note, yarn is not installed on this system since it was just freshly setup with all the usual local solana tooling. at a quick glance of the anchor code, I see it attempts to fallback to npm for installing the node modules, but for some reason it is not for me

system details:

  • ubuntu
  • avm 0.30.1
  • anchor 0.30.1
@nickfrosty
Copy link
Author

looks like this might be related to this issue: #3281

@acheroncrypto
Copy link
Collaborator

This should be fixed when we make npm the default (see #2881).

@nickfrosty
Copy link
Author

amazing!

@arihantbansal
Copy link
Contributor

@nickfrosty You can now pass in the package manager you want to use, see #3328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants