i was starting to instal the codes on my nodemcu when i tried looking for the port i coudnt even click on it why?
No serial devices are currently connected to your computer, or no drivers are installed for the serial device(s) currently connected.
Most NodeMCU boards I think use a CH340G, some use a CP2102; if this is the first time you've used something that had one of those serial adapters in it, you need to install the drivers. Figure out which yours uses and google that part number, your operating system, and the word "drivers".
The other common cause is using a charging-only or defective USB cable. I believe it can also happen from using a USB 3.0 port.