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.

👋 While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (2)

Collapse
 
fernandogprieto profile image
Fernando Prieto •

Thanks

Collapse
 
solomonfoskaay profile image
Solomon Foskaay | dProgrammingUniversity •

Tried and works fine.
Thanks

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

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay