当我构建应用程序时,我正在使用 adonis js 项目版本 5 和节点 js 版本 14 和 docker 版本 20,但当我创建 docker 映像并运行容器 docker 时,我收到此错误任何帮助,请感谢节点服务器.js
错误:缺少pino-pretty
模块:pino-pretty
必须单独安装
at getPrettyStream (/app/node_modules/pino/lib/tools.js:188:13)
at normalizeArgs (/app/node_modules/pino/lib/tools.js:352:16)
at pino (/app/node_modules/pino/pino.js:78:28)
at getPino (/app/node_modules/@adonisjs/logger/build/src/getPino.js:38:99)
at new Logger (/app/node_modules/@adonisjs/logger/build/src/Logger.js:49:55)
at Application.setupLogger (/app/node_modules/@adonisjs/application/build/src/Application.js:320:23)
at Application.setup (/app/node_modules/@adonisjs/application/build/src/Application.js:513:14)
at HttpServer.wire (/app/node_modules/@adonisjs/core/build/src/Ignitor/HttpServer/index.js:48:32)
at HttpServer.start (/app/node_modules/@adonisjs/core/build/src/Ignitor/HttpServer/index.js:146:24)
at Object.<anonymous> (/server.ts:21:4)
在 0.68 秒内完成。