DEV Community

Sean Atukorala
Sean Atukorala

Posted on

[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.

Top comments (2)

Collapse
 
fernandogprieto profile image
Fernando Prieto

Thanks

Collapse
 
solomonfoskaay profile image
Solomon Foskaay | dProgrammingUniversity

Tried and works fine.
Thanks