DEV Community

Sean Atukorala
Sean Atukorala

Posted on

9 4

[Solved] Error: There are no scenarios; must have at least one. Yarn Error

Problem:

Running into the following error when trying to run yarn via the yarn command on Ubuntu:

00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one.
Enter fullscreen mode Exit fullscreen mode

This error is encounter after installing cmdtest via the command: sudo apt install cmdtest

Solution:

This error is usually indictive of yarn not being properly installed. Run the following commands and see if running yarn is successfully afterwards:

sudo apt remove cmdtest
sudo apt install npm
sudo npm install -g yarn
Enter fullscreen mode Exit fullscreen mode

Conclusion

Thanks for reading this blog post!

If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (2)

Collapse
 
fernandogprieto profile image
Fernando Prieto

Thanks

Collapse
 
solomonfoskaay profile image
Solomon Foskaay | dProgrammingUniversity

Tried and works fine.
Thanks

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay