EN
Fix for yarn package installation problem - Error: Couldn't find a package.json file in ...
1
points
1. Problem
Error: Couldn't find a package.json file in ...
...
During yarn package installation I got above error (for readability purpose I didn't paste entire error).
2. Solution
// 1
yarn cache clean
// 2
run yarn command again and it should work
In my case the problem was that some package didn't fetch fully / correctly.
yarn cache clean worked to solve this problem.
Similar github issue: https://github.com/yarnpkg/yarn/issues/1058