Closed jordantgh closed 1 year ago
No response
On both Windows 11 and Ubuntu 22.04, pulling down the latest commit and running the usual docker-compose up fails due to Error: Cannot find module 'winston'.
docker-compose up
Error: Cannot find module 'winston'
What I've tried:
Ubuntu:
git pull
Ubuntu/Windows 11
LibreChat | > LibreChat@0.5.9 backend LibreChat | > cross-env NODE_ENV=production node api/server/index.js LibreChat | LibreChat | Clearing sync timeouts before exiting... LibreChat | node:internal/modules/cjs/loader:1093 LibreChat | throw err; LibreChat | ^ LibreChat | LibreChat | Error: Cannot find module 'winston' LibreChat | Require stack: LibreChat | - /app/api/utils/logger.js LibreChat | - /app/api/strategies/localStrategy.js LibreChat | - /app/api/strategies/index.js LibreChat | - /app/api/server/socialLogins.js LibreChat | - /app/api/server/index.js LibreChat | at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15) LibreChat | at Module._load (node:internal/modules/cjs/loader:934:27) LibreChat | at Module.require (node:internal/modules/cjs/loader:1157:19) LibreChat | at require (node:internal/modules/helpers:119:18) LibreChat | at Object.<anonymous> (/app/api/utils/logger.js:1:17) LibreChat | at Module._compile (node:internal/modules/cjs/loader:1275:14) LibreChat | at Module._extensions..js (node:internal/modules/cjs/loader:1329:10) LibreChat | at Module.load (node:internal/modules/cjs/loader:1133:32) LibreChat | at Module._load (node:internal/modules/cjs/loader:972:12) LibreChat | at Module.require (node:internal/modules/cjs/loader:1157:19) { LibreChat | code: 'MODULE_NOT_FOUND', LibreChat | requireStack: [ LibreChat | '/app/api/utils/logger.js', LibreChat | '/app/api/strategies/localStrategy.js', LibreChat | '/app/api/strategies/index.js', LibreChat | '/app/api/server/socialLogins.js', LibreChat | '/app/api/server/index.js' LibreChat | ] LibreChat | } LibreChat | LibreChat | Node.js v19.9.0 LibreChat exited with code 1
User error, I didn't run docker-compose build first. Cheers to Danny on Discord.
docker-compose build
Contact Details
No response
What happened?
On both Windows 11 and Ubuntu 22.04, pulling down the latest commit and running the usual
docker-compose up
fails due toError: Cannot find module 'winston'
.Steps to Reproduce
What I've tried:
Ubuntu:
git pull
in my existing LibreChat folderdocker-compose up
Ubuntu/Windows 11
docker-compose up
Relevant log output
Code of Conduct