When trying to run the command yarn install, the following error message is displayed:
"Internal Error: Expected an indexed object, got a string instead. Does your file follow Yaml's rules?"
My .yarnrc.yml is syntactically correct. What is the cause of the error?
- Yarn v3.2.2
- Node v16.14.0
Deleting the
yarn.lockfile from the same folder and runningyarn installafterward solved the issue.