连接数据库成功!
开始下载平台文件压缩包...
http://registry.npm.taobao.org/yapi-vendor/download/yapi-vendor-1.10.2.tgz
部署文件完成,正在安装依赖库...
npm
ERR! code ERESOLVE
npm
ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: yapi-vendor@1.10.2 npm ERR! Found: mongoose@5.7.5 npm ERR! node_modules/mongoose npm ERR!
mongoose@"5.7.5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer mongoose@"^4.1.12" from mongoose-auto-increment@5.0.1 npm ERR! node_modules/mongoose-auto-increment npm ERR! mongoose-auto-increment@"5.0.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR!
this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\Think\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Think\AppData\Local\npm-cache\_logs\2021-10-29T01_54_45_582Z-debug.log
依赖库安装完成,正在初始化数据库mongodb...
> yapi-vendor@1.10.2 install-server > node server/install.js
Error: internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module 'fs-extra' Require stack: - C:\Users\Think\my-yapi\vendors\server\install.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:93:18) at Object.<anonymous> (C:\Users\Think\my-yapi\vendors\server\install.js:1:12) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\Users\\Think\\my-yapi\\vendors\\server\\install.js' ] }