Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Cannot find .../bcrypt_lib.node when running Docker for first time #324

Open
phillip-stephens opened this issue Jun 27, 2020 · 0 comments
Open

Comments

@phillip-stephens
Copy link

I'm new to Docker so could definitely be something dumb I'm not doing with that. However when i start the project for the first time with ./run I get the following:

14:39:15 - Starting compilation in watch mode...


14:39:26 - Found 0 errors. Watching for file changes.
error: uncaughtException: Cannot find module '/app/node_modules/bcrypt/lib/binding/bcrypt_lib.node' date=Sat Jun 27 2020 14:39:27 GMT+1200 (NZST), pid=179, uid=0, gid=0, cwd=/app, execPath=/usr/bin/node, version=v8.17.0, argv=[/usr/bin/node, /app/Server.js, --config=config/app_test_default.js], rss=57946112, heapTotal=36098048, heapUsed=24350624, external=931319, loadavg=[1.2255859375, 0.69580078125, 0.61376953125], uptime=38289
Error: Cannot find module '/app/node_modules/bcrypt/lib/binding/bcrypt_lib.node'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/app/node_modules/bcrypt/bcrypt.js:6:16)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/app/models/Device.js:21:34)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Sequelize.import (/app/node_modules/sequelize/lib/sequelize.js:481:62)
    at fs_1.default.readdirSync.filter.forEach (/app/models/index.js:75:35)

Anything I need to ensure I do before running the API server?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant