Port doesnt exist

A fatal error occurred: Could not open COM3, the port doesn't exist
Failed uploading: uploading error: exit status 2

Welcome to the forum

Which Arduino board are you using and is it a real Arduino board or a clone ?

Does your PC create a new COM port when you plug in the Arduino ?

Have you selected that port in the IDE ?

Please confirm which version of the IDE that you are using