Install the developer certificate step is missing important details
Before you can run the "gulp trust-dev-cert" command you must first create a project ("yo @microsoft/sharepoint") and then in a command window or PowerShell window you can run the "gulp trust-dev-cert" command from the root of the project folder created. Also, I got the error "local gulp not found" on Windows 10 after installing gulp if I don't reboot first. The error I get when running the trust-dev-cert command in a folder without the gulpfile.js is "no gulpfile found".
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 5bee09a8-022e-1b5a-4aab-d6e7c6216808
- Version Independent ID: 49edce1e-f2be-e989-917f-c6b389363e2f
- Content: Set up your SharePoint Framework development environment
- Content Source: docs/spfx/set-up-your-development-environment.md
- Product: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
We have reproduce this and will try to fix it.
The issue is fixed by running npm i command in the directory where your webpart is installed.
Running npm i seems to have fixed the problem. Still had different errors running gulp trust-dev-cert after going back to version 8.
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