Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The terminal process terminated with exit code: 2

I am trying to run my Next.js project in VSC. However, the terminal abruptly closes after a few minutes and gives the following error message.

enter image description here

I tried re-installing VSC but it didn't help. What should I do ? I am currently running Windows 11.

like image 236
mukunda Avatar asked Nov 28 '25 09:11

mukunda


1 Answers

I don't really have a perfect fix for the problem, but here's what you can do,

install Windows Terminal; a terminal emulator that you can get on the Microsoft store.

  1. now instead of using the main terminal from the vs code, open up the windows terminal,

Windows Terminal

  1. cd and paste the directory, (you can do it by dragging the folder) entering directory

and now you can access the terminal from here, and it won't shut down.

like image 72
Shaik Junaid Avatar answered Dec 01 '25 17:12

Shaik Junaid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!