yapi icon indicating copy to clipboard operation
yapi copied to clipboard

部署报错

Open 891809266 opened this issue 6 years ago • 3 comments

版本号

~ 所有版本

什么问题

~ 当前安装版本: 1.7.0 C:\Users\89180\AppData\Roaming\npm\node_modules\yapi-cli\node_modules\mongodb-core\lib\connection\commands.js:446 this.documents = new Array(this.numberReturned); ^

RangeError: Invalid array length at new Response (C:\Users\89180\AppData\Roaming\npm\node_modules\yapi-cli\node_modules\mongodb-core\lib\connection\commands.js:446:20) at Socket. (C:\Users\89180\AppData\Roaming\npm\node_modules\yapi-cli\node_modules\mongodb-core\lib\connection\connection.js:363:35) at Socket.emit (events.js:198:13) at addChunk (_stream_readable.js:288:12) at readableAddChunk (_stream_readable.js:269:11) at Socket.Readable.push (_stream_readable.js:224:10) at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

如何复现此问题

~ npm install -g yapi-cli yapi server

什么浏览器

~ chrome

什么系统(Linux, Windows, macOS)

windows, centos7

891809266 avatar Jun 04 '19 07:06 891809266

同样的问题 , 你解决了吗

gongzh021 avatar Jul 12 '23 08:07 gongzh021

nodejs版本是什么?试试16的

tmlx1990 avatar Jul 12 '23 09:07 tmlx1990

nodejs版本是什么?试试16的

v8.17.0

gongzh021 avatar Jul 12 '23 09:07 gongzh021