visual-studio-code - 使用浏览器同步证书时 Excel 插件无法以 SSL 启动
问题描述
我正在开发一个 excel 插件并想在本地调试它,但是当运行时我收到一条类似下面的消息。
打开 https://localhost:4200/ 时,证书未安装。哪里错了?
我的脚本从 SSL 开始。
"scripts": {
"ng": "ng",
"startProd": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt --configuration=production",
"startQa": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt --configuration=qa",
"startLocal": "ng serve --ssl true --ssl-key /node_modules/browser-sync/certs/server.key --ssl-cert /node_modules/browser-sync/certs/server.crt",
"buildLocal": "ng build --optimization=false",
"buildQa": "ng build --configuration=qa",
"build": "gulp build",
"publish": "pushd src && npm version patch && popd && gulp build && npm publish dist",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
注意:我已经安装了一个新证书,npx office-addin-dev-certs
并且 Excel 已经运行。浏览器同步我做错了什么?
解决方案
推荐阅读
- python - 如何从 pytorch 输出张量中提取具有置信度得分的关键点?
- java - 从 arraylist 中删除自定义对象并返回干净的 arrayList
- jenkins - Gerrit 触发器插件未在 Jenkins 中列出
- javascript - 使用 jquery 验证器进行验证时出现下拉设计问题
- wpf - C# WPF Datagrid 在 xaml 中绑定到字符串数组
- linux - 找不到 ffmpeg 命令,但 pip 列表显示 ffmpeg
- java - 在静态方法中同步 - 这是类级别的锁吗?
- php - PHP作曲家耗尽内存......为什么?怎么了?
- ios - 在 SwiftUI 中呈现自定义视图时如何忽略导航栏和标签栏?
- c# - 转换字典
> 进入列表