'Usage Error When run "yarn start" on yarn berry project

Our team decides to use yarn berry on our project, and one in my team initialize project. So I cloned the project on my local and run "yarn start" in terminal But it is not work. This is the Error message.

Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation)

I tried "yarn install" and it worked but node_modules and other things are generated.



Solution 1:[1]

You likely have to first do the command:

yarn install

Then

yarn start

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Carlos Ferreira