This question already has an answer here:
I'm using a Windows computer, and if I recall correctly I installed the IDE using the installer, so I probably don't need to manually install the drivers. However, I can't figure out how to set up the serial port with the Arduino. For me under Tools, there's no "Serial Port" option but instead "Serial Monitor" and "Serial Plotter."
When I tried to upload my file, it failed. When I clicked Serial Plotter, it gave this error message:
Arduino: 1.8.4 (Windows 8.1), Board: "Arduino/Genuino Uno" Sketch uses 940 bytes (2%) of program storage space. Maximum is 32256 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes. avrdude: ser_open(): can't open device "\\.\COM1": The system cannot find the file specified. Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions. Board at COM1 is not available This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
How am I supposed to resolve this?