node.js - gulp serve 命令打开浏览器并出现错误 : "This site can’ t provide a secure connection localhost sent an invalid response"

标签 node.js ssl sharepoint gulp spfx

我无法在我的浏览器中查看 SharePoint 框架 Web 部件,因为它显示“此站点无法提供安全连接本地主机发送了无效响应”ERR_SSL_PROTOCOL_ERROR。我在网上冲浪时尝试了所有可能的解决方案,例如:计算机的日期和时间正确,暂时禁用防火墙和防病毒软件,禁用 Chrome QUIC 协议(protocol),清除 SSL 状态,将 Internet 安全和隐私级别更改为中低,禁用 Internet 浏览器扩展(以隐身模式运行)。还是不行。对此的任何帮助将不胜感激。

enter image description here Error I got

最佳答案

SPFx 目前仅支持 NodeJs v6。

请卸载当前的 Node 并安装 v6.11.5。此外,请确保您已安装 npm 版本 3。

引用 - Set up your SharePoint client-side web part development environment

关于node.js - gulp serve 命令打开浏览器并出现错误 : "This site can’ t provide a secure connection localhost sent an invalid response",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47470529/

相关文章:

ssl - 如何在没有 IIS 的情况下在 Windows Server 2016 中安装 ssl 证书?

sharepoint - 获取 Sharepoint 门户网站的(公共(public))Internet URL

sharepoint - 沙盒解决方案似乎严重受损

Java 如何保护 http 连接查询字符串 URL 请求传递和获取敏感数据?

linux - 在 Linux box 中使用 IE 启动器在 grunt 中运行 Karma

node.js - Mongo 和 Node.js 查找和聚合

node.js - Mongojs.ObjectId() 产生错误的时间戳

ssl - 一个域上有多个 SSL 证书

sharepoint - 不能在不增加处理项目版本的情况下使用 ProcessBatchData

node.js - Firebase 堆栈 "Error: too many index entries for entity"