Expo Upgrade Error Solution

FIX Solution:

$ mv .\yarn.lock .\yarn.lock-old

$ mv .\.expo\ .\.expo-old

$ expo upgrade

 

× Failed to install expo package with error: yarnpkg exited with non-zero code: 1
yarnpkg exited with non-zero code: 1
Error: yarnpkg exited with non-zero code: 1
    at ChildProcess.completionListener (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:65:13)
    at Object.onceWrapper (node:events:642:26)
    at ChildProcess.emit (node:events:527:28)
    at ChildProcess.cp.emit (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
    ...
    at spawnAsync (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:26:19)
    at YarnPackageManager._runAsync (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:314:31)
    at YarnPackageManager.addWithParametersAsync (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:259:16)
    at YarnPackageManager.addAsync (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:263:5)
    at upgradeAsync (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\src\commands\info\upgradeAsync.ts:496:7)
    at actionAsync (C:\Users\15t\AppData\Roaming\npm\node_modules\expo-cli\src\commands\info\upgradeAsync.ts:42:3)
PS G:\APPS\Larave-React\Twitter-clone\FROM-GITHUB\myclone>

PS G:\APPS\Larave-React\Twitter-clone\FROM-GITHUB\myclone> mv .\yarn.lock .\yarn.lock-old
PS G:\APPS\Larave-React\Twitter-clone\FROM-GITHUB\myclone> mv .\.expo\ .\.expo-old
PS G:\APPS\Larave-React\Twitter-clone\FROM-GITHUB\myclone> expo upgrade
Warning! Your git working tree is dirty.
It's recommended to commit all your changes before proceeding, so you can revert the changes made by this command if necessary.

√ Would you like to proceed? ... yes

? You are currently using SDK 42.0.0. Would you like to update to the latest version, 48.0.0? » (Y/n)