Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载yapi-vendor-1.8.5.tgz时,证书认证失败 #1584

Open
nani-tgc opened this issue Jan 9, 2020 · 0 comments · May be fixed by ljzwolfdu/yapi#49, dwtrace/yapi#27 or laozhudetui/yapi#39
Open

下载yapi-vendor-1.8.5.tgz时,证书认证失败 #1584

nani-tgc opened this issue Jan 9, 2020 · 0 comments · May be fixed by ljzwolfdu/yapi#49, dwtrace/yapi#27 or laozhudetui/yapi#39

Comments

@nani-tgc
Copy link

nani-tgc commented Jan 9, 2020

版本号

nodejs版本: v11.0.0
MongoDB版本:mongodb-win32-x86_64-2012plus-4.2.2-signed.msi
git版本:2.16.2

什么问题

在可视化部署页面http://127.0.0.1:9090/部署时,报错
部署日志为:
当前安装版本: 1.8.5
连接数据库成功!
开始下载平台文件压缩包...
http://registry.npm.taobao.org/yapi-vendor/download/yapi-vendor-1.8.5.tgz
Error: unable to verify the first certificate

如何复现此问题

1.安装nodejs到D:\Develop\nodejs
2.在该目录下创建两个文件夹,分别为node_global,node_cache
3.在cmd窗口执行命令
npm config set prefix "D:\Develop\nodejs\node_global"
  npm config set cache "D:\Develop\nodejs\node_cache"
4.修改环境变量
  系统变量添加NODE_PATH,值为node_gloabl\node_modules
  修改用户变量中path,将将默认全局模块安装时的路径C:\Users\Scd\AppData\Roaming\npm修改为D:\nodejs\node_global
5.安装git
6.安装MongoDB
7.在git上下载yapi程序,解压到F:\yapi-master
8.在F:\yapi-master中打开命令窗口,执行命令
npm install -g yapi-cli --registry https://registry.npm.taobao.org
yapi server
9.在浏览器中打开http://127.0.0.1:9090/,版本选择1.8.5,输入“公司名称”,执行部署,出现报错。
(当部署版本选择1.3.6可部署成功)

什么浏览器

谷歌浏览器 版本 79.0.3945.88(正式版本) (64 位)

什么系统(Linux, Windows, macOS)

win7旗舰版 64位

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant