0

When I attempt to run anchor tests through anchor test I get the following error:

warning: `hello` (lib) generated 1 warning (run `cargo fix --lib -p hello` to apply 1 suggestion)
    Finished release [optimized] target(s) in 5m 30s

Found a 'test' script in the Anchor.toml. Running it as a test suite!

Running test suite: "/home/user/hello/Anchor.toml"

Usage: yarn [options]

yarn: error: no such option: -p

Does anybody have any idea on how to fix this error?

1 Answer 1

0

Try reinstalling yarn using corepack

https://yarnpkg.com/getting-started/install

1
  • My node version is v18.19.0. No I installed it using npm. Commented Jan 19 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.