Bcrypt module error in openhab-cloud installation

Hello,

I am running own openhab-cloud.
I performed the steps in the installation document without any errors.

but when I issue the command “node app.js” it gives the following error message:
{“code”:“MODULE_NOT_FOUND”}

The contents of the file “openhab-cloud-2021-09-04-process-3000.log” are as follows:


2021-09-04 11:16:17:1717 info: openHAB-cloud: Backend service is starting up…
2021-09-04 11:16:17:1717 info: openHAB-cloud: Backend logging initialized…
2021-09-04 11:16:18:1818 error: uncaughtException: Cannot find module ‘bcrypt’
Error: Cannot find module ‘bcrypt’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/ayes/openhab-cloud/models/userdevice.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/ayes/openhab-cloud/fcm-xmpp.js:10:20)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
2021-09-04 11:16:18:1818 error: undefined

I searched “bcrypt” which is the nmp module, I think this module is deprecated.
How can I overcome this problem?

  • what OS and OS version do you use ?
  • what node.js version do you use ?
  • the openhab-cloud software was recently downloaded ?

Operating system: Ubuntu 20.04
nodejs version : 10
I downloaded and installed openhab-cloud with the console command “git clone https://github.com/openhab/openhab-cloud.git” 2 days ago.

Having a look to https://github.com/openhab/openhab-cloud I see several entries that state: Updates Node to version 14, updates NPM modules
So I would try if it works with that version of nodejs.
May be it is a good idea to do this in a VM first so you can keep you Ubuntu 20.04 installation clean in case you need to revert to one more different strategy.
You also may search the issue entries at https://github.com/openhab/openhab-cloud/issues/ to see what other users reported. Last commit was on 06.04.2021 so that should be ok.