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?