expected workspace package to exist for \"sane\""

Viewed 8288

I got the project from the github and want to install the node_modules by using "yarn install".

When I enter the yarn install, the terminal came out the result as shown as the picture. As a reference, my node version is 12.18.0, yarn version 1.22.4, and npm version 6.14.5. May I know is the version not compatible or somethings else problem?

enter image description here

2 Answers

Same issue using lerna. Assumed it's the yarn version problem. Under project folder, I tried rolling back yarn version:

yarn policies set-version 1.19.0
// (or 1.18.0)

and solved for my case: yarn ^3.22.0, node v14.4.0

A quicker solution is to use:

npx yarn@1.19.0 add your-deps-here
Related