-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
As of 1/4/2021 the https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment article states, with emphasis added:
Trusting the self-signed developer certificate
The SharePoint Framework's local webserver, used when testing your custom solutions from your development environment, uses HTTPS by default. This is implemented using a development self-signed SSL certificate. Self-signed SSL certificates are not trusted by your developer environment. You must first configure your development environment to trust the certificate.
A utility task is included in every SharePoint Framework project in the form of a gulp task. You can elect to do this now, or wait until you create your first project as covered in the Build your first SharePoint client-side web part (Hello World part 1) tutorial.
When executing gulp trust-dev-cert the following error is encountered.
[14:55:58] Local gulp not found in ~
[14:55:58] Try running: npm install gulp
The document states that "You can elect to do this now, or wait until you create your first project".
The use of "or" is that of a conjunction used to connect words, phrases, or clauses representing alternatives. E.g. You can dine in or you can carry out. In this case per the documentation, the command to trust the developer certificate can be done before creating a project or after creating a project.
The command fails before creating a project. So please fix the command OR correct the documentation.
Related Bugs:
- Local gulp not found #3575
- Unable to trust the self-signed developer certificate before creating a project. #6588
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
- Technology: sharepoint-framework
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs