Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module '../lib/discovery' using Docker container oznu/homebridge:latest on Ubuntu 23.04 #139

Open
droffsite opened this issue Jun 14, 2023 · 1 comment

Comments

@droffsite
Copy link

Expected Behavior

Retrieve Roomba configuration parameters

Current Behavior

Receiving error below

Steps to Reproduce (for bugs)

See below

Versions

  • Homebridge: 1.6.1
  • Node: v18.13.0
  • Plugin: homebridge-roomba2 v1.4.0

Configuration

Homebridge Log / Command Output

Note: This is a restricted shell, sudo cannot be used here.

Homebridge Terminal

Node.js Version: v18.13.0
Node.js Path: /opt/homebridge/bin/node
Plugin Path: /var/lib/homebridge/node_modules

Update Node.js: hb-service update-node

Install Plugin: hb-service add homebridge-plugin-name
Remove Plugin: hb-service remove homebridge-plugin-name

root@OptiPlex-9010:/var/lib/homebridge $ cd homebridge-roomba2/
root@OptiPlex-9010:/var/lib/homebridge/homebridge-roomba2 $ npm run getpassword 192.168.x.x

> homebridge-roomba2@1.4.0 getpassword
> get-roomba-password 192.168.x.x

node:internal/modules/cjs/loader:1042
  throw err;
  ^

Error: Cannot find module '../lib/discovery'
Require stack:
- /homebridge/homebridge-roomba2/node_modules/.bin/get-roomba-password
    at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/homebridge/homebridge-roomba2/node_modules/.bin/get-roomba-password:7:19)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/homebridge/homebridge-roomba2/node_modules/.bin/get-roomba-password'
  ]
}

Node.js v18.13.0
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

1 participant