[Solved] An error occurred while uploading the sketch. Arduino Nano Code Upload Error avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

Recently, after my OS was reinstalled installed the latest version of Arduino IDE to my Win 10 laptop. I opened a sample sketch, the blinky, connected my Arduino Nano, selected the right port and board and clicked on upload. The code was compiled in 3 seconds, but it was stuck in the upload part. Arduino…