When i used yarn, i met problem. The problem relate to yarn. I tried remove yarn and reinstall, but that cannot solve the problem.
I met this problem when i change version of node.js(from LTS to stable version).
Internal Error: Unable to deserialize cloned data due to invalid or unsupported version. at Object.deserialize (node:v8:345:7) at Ke.restoreInstallState (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:447:965) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async wC.execute (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:486:14746) at async wC.validateAndExecute (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:337:620) at async oo.run (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:351:1846) at async oo.runExit (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:351:2013) at async i (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:448:12377) at async r (/Users/user/Programming/prj/.yarn/releases/yarn-3.1.0.cjs:448:10617)
When if you see this problem, you can use this way.
- In my case, i deleted
.yarn folder(directory). On this directory, there are so many yarn setting files.
- I solved problem just try 1. But if you cannot solve this problem, try put cmd on terminal
yarn cache clean.
$ yarn cache clean