NodeMCU Connection Issue

Hey there! I've got a nodeMCU v3.0 board, but I'm unable to communicate with it. I have installed its driver and so when I connect it to the USB port, I can see the device is connected properly in the device manager.
Also, I have installed the esp8266 board into the Arduino software, But I couldn't upload even a blank sketch on it. It says:

A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header

Can anybody help?