yapi 部署报错

4c8rllxm  于 21天前  发布在  其他
关注(0)|答案(3)|浏览(14)

版本号

~
所有版本

什么问题

~
当前安装版本: 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

jm81lzqq

jm81lzqq1#

同样的问题 , 你解决了吗

rekjcdws

rekjcdws2#

nodejs版本是什么?试试16的

inb24sb2

inb24sb23#

nodejs版本是什么?试试16的

v8.17.0

相关问题