Closed dybxin closed 4 years ago
index@e1de5f46970ec7409da0.js:1 Uncaught Error: Cannot find module "./styles/common.scss"
at index@e1de5f46970ec7409da0.js:1
at Object.
试试拉取最新版。
docker-compose.yml 对应的 YAPI_PLUGINS=[{"name":"add-user"}] 修改后,执行docker-compose restart yapi-web 相关的日志如下:
yapi-web | 关闭引导服务...
yapi-web | 尝试启动 YApi...
yapi-web | log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
yapi-web | log: 服务已启动,请打开下面链接访问:
yapi-web | http://127.0.0.1:3000/
yapi-web | (node:1) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
yapi-web | (Use node --trace-warnings ...
to show where the warning was created)
yapi-web | (node:1) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
yapi-web | (node:1) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
yapi-web | (node:1) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
yapi-web | log: mongodb load success...
yapi-web | 启动引导服务...
yapi-web | 写入配置...
yapi-web | {
yapi-web | "adminAccount": "admin3@docker.yapi",
yapi-web | "db": {
yapi-web | "servername": "yapi-mongo",
yapi-web | "port": 27017,
yapi-web | "DATABASE": "yapi"
yapi-web | },
yapi-web | "mail": {
yapi-web | "enable": false,
yapi-web | "auth": {}
yapi-web | },
yapi-web | "ldapLogin": {
yapi-web | "enable": false
yapi-web | },
yapi-web | "closeRegister": true,
yapi-web | "plugins": [],
yapi-web | "adminPassword": "adm1n",
yapi-web | "port": 3000
yapi-web | }
yapi-web | 等待 MongoDB 服务可用...
yapi-web | 安装 YApi 插件...
yapi-web | 尝试安装 YApi...
yapi-web | + node '--unhandled-rejections=strict' ./vendors/server/install.js
yapi-web |
yapi-web | /yapi/vendors/server/install.js:15
yapi-web | throw new Error(
yapi-web | ^
yapi-web |
yapi-web | Error: init.lock文件已存在,请确认您是否已安装。如果需要重新安装,请删掉init.lock文件
yapi-web | at install (/yapi/vendors/server/install.js:15:11)
yapi-web | at Object.node --trace-warnings ...
to show where the warning was created)
yapi-web | (node:1) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
yapi-web | (node:1) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
yapi-web | (node:1) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
yapi-web | log: mongodb load success...
yapi-web | (node:1) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
我重新 docker-componse down 之后,重新起,错误信息如下:
yapi-web | [error] ./client/styles/common.scss
yapi-web | Module build failed: Error: Missing binding /yapi/vendors/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
yapi-web | Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 14.x
yapi-web |
yapi-web | Found bindings for the following environments:
yapi-web | - Linux/musl 64-bit with Node.js 13.x
yapi-web |
yapi-web | This usually happens because your environment has changed since running npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.npm install
.
yapi-web | Run npm rebuild node-sass
to download the binding for your current environment.
yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
yapi-web | at Object.NODE_ENV=production ykit pack -m
yapi-web | npm ERR! Exit status 1
yapi-web | npm
yapi-web | ERR!
yapi-web | npm ERR! Failed at the yapi-vendor@1.9.1 build-client script.
yapi-web |
yapi-web | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
yapi-web |
yapi-web |
yapi-web |
yapi-web | npm ERR! A complete log of this run can be found in:
yapi-web | npm
yapi-web | ERR! /root/.npm/_logs/2020-05-22T07_43_15_712Z-debug.log
yapi-web |
yapi-web | 尝试安装 YApi...
yapi-web | + node '--unhandled-rejections=strict' ./vendors/server/install.js
yapi-web |
yapi-web | (node:93) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
yapi-web | (Use node --trace-warnings ...
to show where the warning was created)
yapi-web |
yapi-web | (node:93) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
yapi-web |
yapi-web | (node:93) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
yapi-web | (node:93) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
yapi-web |
yapi-web | log: mongodb load success...
yapi-web |
yapi-web | 初始化管理员账号成功,账号名:"admin5@docker.yapi",密码:"adm1n"
yapi-web |
yapi-web | 关闭引导服务...
yapi-web | 尝试启动 YApi...
yapi-web | log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
yapi-web | log: 服务已启动,请打开下面链接访问:
yapi-web | http://127.0.0.1:3000/
yapi-web | (node:1) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
yapi-web | (Use node --trace-warnings ...
to show where the warning was created)
yapi-web | (node:1) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
yapi-web | (node:1) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
yapi-web | (node:1) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
yapi-web | log: mongodb load success...
前端页面显示:
index@e1de5f46970ec7409da0.js:1 Uncaught Error: Cannot find module "./styles/common.scss"
at index@e1de5f46970ec7409da0.js:1
at Object.
试试拉取最新版。
已经拉取代码了,还是会有新的问题。应该是环境的问题吧
你得先 docker-compose pull yapi-web,请去看首页的如何升级说明。
你得先 docker-compose pull yapi-web,请去看首页的如何升级说明。
关于添加插件的问题,如果之前已经添加过“add-user”这个插件,当再次编译的时候将YAPI_PLUGINS=[] 清空,已添加过的插件能否被移除?
add-user 已经内置,不可移除,其他插件再次编译就没了。
add-user 已经内置,不可移除,其他插件再次编译就没了。
好的
add-user 已经内置,不可移除,其他插件再次编译就没了。
请教一个 关于企业微信登录插件(https://github.com/dickey910/yapi-plugin-ww-login) 的问题,引入该插件,扫码登录后报:{"errcode":40011,"errmsg":"请登录...","data":null}
yapi-web | [error] ./exts/yapi-plugin-advanced-mock/MockCol/CaseDesModal.scss yapi-web | Module build failed: Error: Missing binding /yapi/vendors/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node yapi-web | Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 14.x yapi-web | yapi-web | Found bindings for the following environments: yapi-web | - Linux/musl 64-bit with Node.js 13.x yapi-web | yapi-web | This usually happens because your environment has changed since running (/yapi/vendors/node_modules/node-sass/lib/index.js:14:35)
yapi-web | at Module._compile (internal/modules/cjs/loader.js:1185:30)
yapi-web | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
yapi-web | at Module.load (internal/modules/cjs/loader.js:1034:32)
yapi-web | at Function.Module._load (internal/modules/cjs/loader.js:923:14)
yapi-web | at Module.require (internal/modules/cjs/loader.js:1074:19)
yapi-web | at require (internal/modules/cjs/helpers.js:72:18)
yapi-web | at Object.sassLoader (/yapi/vendors/node_modules/sass-loader/lib/loader.js:24:22)
yapi-web | @ ./exts/yapi-plugin-advanced-mock/MockCol/CaseDesModal.js 103:0-30
yapi-web |
yapi-web |
yapi-web | npm
yapi-web | ERR! code ELIFECYCLE
yapi-web |
yapi-web | npm
yapi-web | ERR! errno
yapi-web | 1
yapi-web |
yapi-web | npm
yapi-web | ERR! yapi-vendor@1.9.1 build-client:
npm install
. yapi-web | Runnpm rebuild node-sass
to download the binding for your current environment. yapi-web | at module.exports (/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13) yapi-web | at Object.NODE_ENV=production ykit pack -m
yapi-web | npm yapi-web | ERR! Exit status 1 yapi-web | npm yapi-web | ERR! yapi-web | npm yapi-web | ERR! Failed at the yapi-vendor@1.9.1 build-client script. yapi-web | npm ERR! yapi-web | This is probably not a problem with npm. There is likely additional logging output above. yapi-web | yapi-web | yapi-web | yapi-web | npm ERR! A complete log of this run can be found in: yapi-web | npm ERR! /root/.npm/_logs/2020-05-21T02_25_29_877Z-debug.log yapi-web | yapi-web | 尝试安装 YApi... yapi-web | + node '--unhandled-rejections=strict' ./vendors/server/install.js yapi-web | yapi-web | (node:93) Warning: Accessing non-existent property 'count' of module exports inside circular dependency yapi-web | (Usenode --trace-warnings ...
to show where the warning was created) yapi-web | yapi-web | (node:93) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency yapi-web | yapi-web | (node:93) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency yapi-web | (node:93) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency yapi-web | yapi-web | log: mongodb load success... yapi-web | yapi-web | /yapi/vendors/server/install.js:146 yapi-web | throw new Error(初始化管理员账号 "${yapi.WEBCONFIG.adminAccount}" 失败, ${err.message}
); // eslint-disable-line yapi-web | ^ yapi-web | yapi-web | Error: 初始化管理员账号 "xxxxx@docker.yapi" 失败, E11000 duplicate key error collection: yapi.user index: email_1 dup key: { email: "xxxxx@docker.yapi" } 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 | log: -------------------------------------swaggerSyncUtils constructor----------------------------------------------- yapi-web | log: 服务已启动,请打开下面链接访问: yapi-web | http://127.0.0.1:3000/ yapi-web | (node:1) Warning: Accessing non-existent property 'count' of module exports inside circular dependency yapi-web | (Usenode --trace-warnings ...
to show where the warning was created) yapi-web | (node:1) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency yapi-web | (node:1) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency yapi-web | (node:1) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency yapi-web | log: mongodb load success... yapi-web | (node:1) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated