Arduino nano dosen't upload code

Are you able to upload to the Mega without problems, if using the same cable and USB port that you used with the Nano?