Sometime when you run gulp serve you might get error
Error – [spfx-serve] The api entry could not be loaded. Node_modules/@microsoft/
To fix this error run the below command
Npm install @microsoft/sp-webpart-workbench
The above command will fix this issue.