创建spfx webpart时出错(client-sidewebpart) [英] Error while creating spfx webpart (client-sidewebpart)
问题描述
我在创建SpFx WebPart(客户端webpart)时收到错误(附上截图)。
I am getting an error (screenshot attached) while creating a SpFx WebPart (client-side webpart).
创建webpart时选择了以下选项,
Below option is selected while creating the webpart,
您要为组件定位哪些基准包? SharePoint 2019及更高版本,包括SharePoint Online
Which baseline packages do you want to target for your component(s)? SharePoint 2019 onwards, including SharePoint Online
您想使用哪个框架? 反应
Which framework would you like to use? React
任何人都可以帮助...
Can anyone plz help...
谢谢,
Balaram
推荐答案
首先尝试运行此命令:
try to run this command first:
npm config set strict-ssl false
npm config set strict-ssl false
然后重复你的步骤。如果它没有用,你可以在这里检查类似的线程:
npm安装错误 - 无法获得本地颁发者证书。
and then repeat your steps. If it won't help you may check similar thread here:
npm install error - unable to get local issuer certificate.
这篇关于创建spfx webpart时出错(client-sidewebpart)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!