Closed ricklii closed 4 years ago
把前缀 yapi-plugin-
去掉,细看文档。
另外,这个插件似乎“需要在vendors目录下新建input.docx模板文件”
你可以通过 volumes 把 input.docx 映射进去。
volumes:
- ./input.docx:/yapi/vendors/input.docx
非常感谢!
把前缀
yapi-plugin-
去掉,细看文档。另外,这个插件似乎“需要在vendors目录下新建input.docx模板文件”
你可以通过 volumes 把 input.docx 映射进去。
volumes: - ./input.docx:/yapi/vendors/input.docx
这个yapi 版本是多少,现在新的yapi的格式好像对不上
8 silly fetchPackageMetaData error for url-loader@0.5.9 request to https://registry.npm.taobao.org/url-loader failed
1939 silly fetchPackageMetaData error for yapi-plugin-add-user@latest request to https://registry.npm.taobao.org/yapi-p
1940 timing stage:rollbackFailedOptional Completed in 0ms
1941 timing stage:runTopLevelLifecycles Completed in 3290ms
1942 silly saveTree yapi-vendor@1.10.2
1943 verbose type system
1944 verbose stack FetchError: request to https://registry.npm.taobao.org/ajv-i18n failed, reason: certificate has expi
1944 verbose stack at ClientRequest.
如题
按照- YAPI_PLUGINS=[{"name":"yapi-plugin-export-docx-data"},日志出现:
yapi-web | Error: 初始化管理员账号 "xx@tt.com" 失败, E11000 duplicate key error collection: yapi.user index: email_1 dup key: { email: "xx@tt.com" } yapi-web | at /yapi/vendors/server/install.js:146:17 yapi-web | at processTicksAndRejections (internal/process/task_queues.js:97:5) yapi-web | yapi-web | 关闭引导服务... yapi-web | 尝试启动 YApi... yapi-web | (node:1) UnhandledPromiseRejectionWarning: Error: Cannot find module 'yapi-plugin-yapi-plugin-export-docx-data'
另外,这个插件似乎“需要在vendors目录下新建input.docx模板文件”