EN
Fix for yarn package installation problem - Error: Couldn't find a package.json file in ...
1 points
xxxxxxxxxx
1
Error: Couldn't find a package.json file in ...
2
...
During yarn package installation I got above error (for readability purpose I didn't paste entire error).
xxxxxxxxxx
1
// 1
2
yarn cache clean
3
4
// 2
5
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