sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Error is thrown while executing gulp trust-dev-cert command

Open anthony-git opened this issue 6 years ago • 6 comments

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

anthony-git avatar Dec 06 '19 06:12 anthony-git

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Dec 06 '19 06:12 msft-github-bot

Context please... what version of SPFx, what environment, etc...

andrewconnell avatar Dec 06 '19 17:12 andrewconnell

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.

msft-github-bot avatar Dec 06 '19 17:12 msft-github-bot

SharePoint Environment - SharePoint online Node.js - V8.11.4 gulp - 4.0.2 yeoman - 3.1.1

anthony-git avatar Dec 09 '19 04:12 anthony-git

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:

Snipaste_2019-12-09_16-45-25

Jerry0527 avatar Dec 09 '19 08:12 Jerry0527

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

msft-github-bot avatar Jan 23 '20 00:01 msft-github-bot