And also if you are using any external hubs and connectors, make sure they are in working condition as well. Also make sure your laptop's USB ports are clean and connections are not loose and shaky.
Also make sure you have installed the proper drivers for your laptop to recognize your board:
https://github.com/nodemcu/nodemcu-devkit/tree/master/Drivers
These are the first troubleshooting steps I would take. I recommend watching a YouTube video tutorial if these steps don't work. Hope this answer was helpful. Good Luck!
https://github.com/sajith-karunatilake