Error is thrown while executing gulp trust-dev-cert command
am following the instructions from: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part Error is thrown while executing gulp trust-dev-cert command.Tried with Node 8.11.4 as mentioned. Even i tried deleting .gcb-serve-data folder but still i get the same error.
Error - [trust-cert] TypeError: Cannot read property 'toString' of null Error - 'trust-cert' sub task errored after 13 s Cannot read property 'toString' of null Error - [trust-cert] TypeError: Cannot read property 'toString' of null Error - 'trust-cert' sub task errored after 13 s Cannot read property 'toString' of null
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Context please... what version of SPFx, what environment, etc...
The more context details you can provide, the easier it is to help assist on issues. Any code you can provide and/or screenshots of the issue also help. The easier you can make it to reproduce the issue, the easier and quicker it is for someone to help you. Things that always help posting with every issue include (1) SharePoint environment(s) (on-prem / SP 2016 / SP 2019 / SharePoint Online), (2) if SharePoint Online, is the tenant configured for standard / targeted release, (3) if SharePoint Framework, list the versions of installed tools (Node.js, NPM, Yeoman, Gulp, SPFx generator, etc... use npm list -g --depth=0), (4) if applicable, browser(s) tested, (5) if applicable, version of Office UI Fabric React & (6) anything else you can provide.
SharePoint Environment - SharePoint online Node.js - V8.11.4 gulp - 4.0.2 yeoman - 3.1.1
This is a known issue for Node.js v8: gulp trust-dev-cert command not working for SharePoint Framework project creation
Try to install Node.JS v10 as official document suggested, I tested in my local with Node.Js v10, it's working:

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues