I'm trying to run yarn but it doesn't work. I already tried to install it again and moved between node versions but the same error appears over and over again no matter the yarn command I run. I tried using npm to install it and via the installer. This problem is happening globally not only in projects.
YAMLException: end of the stream or a document separator is expected at line 1, column 1:
^
at generateError (C:\Program Files (x86)\Yarn\lib\cli.js:126022:10)
at throwError (C:\Program Files (x86)\Yarn\lib\cli.js:126028:9)
at readDocument (C:\Program Files (x86)\Yarn\lib\cli.js:127394:5)
at loadDocuments (C:\Program Files (x86)\Yarn\lib\cli.js:127430:5)
at load (C:\Program Files (x86)\Yarn\lib\cli.js:127451:19)
at safeLoad (C:\Program Files (x86)\Yarn\lib\cli.js:127473:10)
at parse (C:\Program Files (x86)\Yarn\lib\cli.js:63707:18)
at module.exports.exports.default (C:\Program Files (x86)\Yarn\lib\cli.js:63258:96)
at loadRcFile (C:\Program Files (x86)\Yarn\lib\cli.js:56992:58)
at C:\Program Files (x86)\Yarn\lib\cli.js:56966:14
To reproduce
Yarn [something]
Environment
yarn dlx -q envinfo --preset jest
YAMLException: end of the stream or a document separator is expected at line 1, column 1:
^
at generateError (C:\Program Files (x86)\Yarn\lib\cli.js:126022:10)
at throwError (C:\Program Files (x86)\Yarn\lib\cli.js:126028:9)
at readDocument (C:\Program Files (x86)\Yarn\lib\cli.js:127394:5)
at loadDocuments (C:\Program Files (x86)\Yarn\lib\cli.js:127430:5)
at load (C:\Program Files (x86)\Yarn\lib\cli.js:127451:19)
at safeLoad (C:\Program Files (x86)\Yarn\lib\cli.js:127473:10)
at parse (C:\Program Files (x86)\Yarn\lib\cli.js:63707:18)
at module.exports.exports.default (C:\Program Files (x86)\Yarn\lib\cli.js:63258:96)
at loadRcFile (C:\Program Files (x86)\Yarn\lib\cli.js:56992:58)
at C:\Program Files (x86)\Yarn\lib\cli.js:56966:14
Self-service
Describe the bug
I'm trying to run yarn but it doesn't work. I already tried to install it again and moved between node versions but the same error appears over and over again no matter the yarn command I run. I tried using npm to install it and via the installer. This problem is happening globally not only in projects.
YAMLException: end of the stream or a document separator is expected at line 1, column 1:
To reproduce
Yarn [something]
Environment
Additional context
Using Windows OS