yapi 服务器部署报错

t3psigkw  于 2022-10-27  发布在  其他
关注(0)|答案(4)|浏览(371)

版本号

~1.9.2

什么问题

~
Error: (node:9316) Warning: Accessing non-existent property 'count' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created)

如何复现此问题

~
可视化部署

什么浏览器

~
谷歌

什么系统(Linux, Windows, macOS)

windows

vxbzzdmp

vxbzzdmp1#

windows部署报这个错误

mcdcgff0

mcdcgff02#

Node.js 版本是多少?如果是 Node.js 15.x,可尝试使用 Node.js 14.x 部署。

8gsdolmq

8gsdolmq3#

依赖库安装完成,正在初始化数据库mongodb...
yapi-vendor@1.9.2 install-server /root/my-yapi/vendors
node server/install.js

Error: (node:18087) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)

分割>>>>>>
我这边也卡在这里

[root@localhost ~]# node -v
v14.16.1
[root@localhost ~]# npm -v
6.14.12
centos7

@zhanglianxin

gcmastyq

gcmastyq4#

我已解决
node 版本降至 12.x 即可。
@zhanglianxin@liuxusuifeng

相关问题