Lost format on login page

Not sure what I did to cause this, was trying swithch-to-version-11 then back to 12, now bench switch-to-version-12 --upgrade reports 12 is all installed but the login page renders:

Clicking on Login doesn’t provide any dialog.

@smino
Use “bench migrate && bench build && bench clear-cache”

@smino: Pls. check the same in Google Crome.

The bench build command resulted in this output when it stooped running:

Error: spawn ENOMEM
at ChildProcess.spawn (internal/child_process.js:366:11)
at spawn (child_process.js:551:9)
at Object.fork (child_process.js:113:10)
at ChildProcessWorker.initialize (/home/frappe/frappe-bench/apps/frappe/node_modules/jest-worker/build/workers/ChildProcessWorker.js:137:44)
at ChildProcessWorker.onExit (/home/frappe/frappe-bench/apps/frappe/node_modules/jest-worker/build/workers/ChildProcessWorker.js:263:12)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

I increased the memory for the VM to 2G from 1 and ran it again and it completed without error and the login page renders correctly. Thanks @Onkar_Mirajkar .

Now the issue is that only the basic modules show on the desktop, Selling , Buying etc that were there are no longer. No modules appear, only Places and Administraion.

Turns out I had made an incorrect change to .git/config, this post gave me the correct syntax.

@clarkej may mark this one Solved.

@smino
Can you please explain more about “No modules appear, only Places and Administraion.”

On the Desktop, there were no Modules (Getting Started, Accounting etc)