求助:Yapi部署报错 希望大神能帮忙指点一下~

qq_42880645 2020-03-07 08:56:23
Yappi部署时报错


E:\YAPI\yapi-master>npm run install-server //安装程序会初始化数据库索引和管理员账号,管理员账号名可在 config.json 配置

> yapi-vendor@1.8.6 install-server E:\YAPI\yapi-master
> node server/install.js " //安装程序会初始化数据库索引和管理员账号,管理员账号名可在" "config.json" "配置"

internal/modules/cjs/loader.js:985
throw err;
^

Error: Cannot find module '../../config.json'
Require stack:
- E:\YAPI\yapi-master\server\yapi.js
- E:\YAPI\yapi-master\server\install.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (E:\YAPI\yapi-master\server\yapi.js:4:16)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'E:\\YAPI\\yapi-master\\server\\yapi.js',
'E:\\YAPI\\yapi-master\\server\\install.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yapi-vendor@1.8.6 install-server: ` node server/install.js "//安装程序会初始化数据库索引和管理员账号,管理员账 号名可在" "config.json" "配置"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yapi-vendor@1.8.6 install-server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache\_logs\2020-03-07T12_30_41_457Z-debug.log
...全文
1089 回复 打赏 收藏 举报
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复
相关推荐
发帖
OpenAPI

2244

社区成员

OpenAPI
社区管理员
  • OpenAPI社区
加入社区
帖子事件
创建了帖子
2020-03-07 08:56
社区公告
暂无公告