Error: Couldn't find any versions for "@dhis2-ui/button" that matches "7.7.1"

How do you fix this?

I have been dealing with this error. One of my app that use to work is no longer working when I clone it to my system. I am getting the error error below when I run yarn build

node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn yarn ENOENT
    at notFoundError (C:\Users\Hp\AppData\Local\Yarn\Berry\cache\cross-spawn-npm-7.0.3-e4ff3e65b3-10c0.zip\node_modules\cross-spawn\lib\enoent.js:6:26)
-10c0.zip\node_modules\cross-spawn\lib\enoent.js:40:16)
    at cp.emit (C:\Users\Hp\AppData\Local\Yarn\Berry\cache\cross-spawn-npm-7.0.3-e4ff3e65b3-10c0.zip\node_modules\cross-spawn\lib\enoent.js:27:25)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)
Emitted 'error' event on ChildProcess instance at:
    at cp.emit (C:\Users\Hp\AppData\Local\Yarn\Berry\cache\cross-spawn-npm-7.0.3-e4ff3e65b3-10c0.zip\node_modules\cross-spawn\lib\enoent.js:30:37)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn yarn',
  path: 'yarn',
  spawnargs: [ 'run', 'build' ]
}