Giter Site home page Giter Site logo

怎么添加用户啊 about docker-yapi HOT 14 CLOSED

fjc0k avatar fjc0k commented on July 20, 2024
怎么添加用户啊

from docker-yapi.

Comments (14)

fjc0k avatar fjc0k commented on July 20, 2024

https://github.com/fjc0k/docker-YApi#%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE

from docker-yapi.

fjc0k avatar fjc0k commented on July 20, 2024

https://github.com/fjc0k/docker-YApi#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

image
炸了!

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

image

from docker-yapi.

fjc0k avatar fjc0k commented on July 20, 2024

你没用 gitlab 插件为啥要加上呢

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

贪心了下 @fjc0k

from docker-yapi.

fjc0k avatar fjc0k commented on July 20, 2024

那你去看 gitlab 插件的配置,配完全。

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

可以的 棒! @fjc0k

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

等待 MongoDB 服务可用...
安装 YApi 插件...

  • cd /yapi/vendors
  • npm install yapi-plugin-add-user --no-audit

npm WARN [email protected] requires a peer of mongoose@^4.1.12 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^0.14.0 || ^15.0.1 but none is installed. You must install peer dependencies yourself.

1 package is looking for funding
run npm fund for details

  • npm run build-client

[email protected] build-client /yapi/vendors
NODE_ENV=production ykit pack -m

Killed

尝试安装 YApi...

  • node '--unhandled-rejections=strict' ./vendors/server/install.js

/yapi/vendors/node_modules/mongoose/lib/error/validation.js:30
Error.captureStackTrace(this);
^

Error [ValidationError]: user validation failed: username: Path username is required.
at ValidationError.inspect (/yapi/vendors/node_modules/mongoose/lib/error/validation.js:59:24)
at formatValue (internal/util/inspect.js:690:31)
at inspect (internal/util/inspect.js:259:10)
at afterInspector (internal/errors.js:676:14)
at processPromiseRejections (internal/process/promises.js:192:9)
at processTicksAndRejections (internal/process/task_queues.js:98:32) {
errors: {
username: MongooseError [ValidatorError]: Path username is required.
at new ValidatorError (/yapi/vendors/node_modules/mongoose/lib/error/validator.js:29:11)
at validate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:838:13)
at /yapi/vendors/node_modules/mongoose/lib/schematype.js:887:11
at Array.forEach ()
at SchemaString.SchemaType.doValidate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:847:19)
at /yapi/vendors/node_modules/mongoose/lib/document.js:1844:9
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
message: 'Path username is required.',
name: 'ValidatorError',
properties: [Object],
kind: 'required',
path: 'username',
value: '',
reason: undefined,
'$isValidatorError': true
}
},
_message: 'user validation failed',
name: 'ValidationError'
}

关闭引导服务...
尝试启动 YApi...
log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
log: 服务已启动,请打开下面链接访问:
http://127.0.0.1:3000/
log: mongodb load success...

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

@fjc0k 加了一堆问题

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

image

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

npm run build-client
[email protected] build-client /yapi/vendors
NODE_ENV=production ykit pack -m
这一步好像经常卡死

from docker-yapi.

gezhiwei8899 avatar gezhiwei8899 commented on July 20, 2024

@fjc0k 大佬支撑一波呢

from docker-yapi.

fjc0k avatar fjc0k commented on July 20, 2024

应该是机器配置或者分配给容器的配置不够,导致 npm run build-client 被杀死,后续也就出错了。

这是 YApi 自带的构建命令,没有办法改进的,建议换机器或调整配置部署。

from docker-yapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.