umesan / homebridge-roomba

Homebridge Plugin for Roomba980
Apache License 2.0
41 stars 16 forks source link

error at startup #8

Closed Mx-Razvan closed 6 years ago

Mx-Razvan commented 7 years ago

[5/7/2017, 2:59:38 PM] ==================== [5/7/2017, 2:59:38 PM] ERROR LOADING PLUGIN homebridge-roomba: [5/7/2017, 2:59:38 PM] Error: Plugin /usr/lib/node_modules/homebridge-roomba does not contain the 'homebridge' package in 'engines'. at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:49:11) at Server. (/usr/lib/node_modules/homebridge/lib/server.js:132:14) at Array.forEach (native) at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:128:22) at new Server (/usr/lib/node_modules/homebridge/lib/server.js:51:24) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16) at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:423:7) at startup (bootstrap_node.js:147:9) at bootstrap_node.js:538:3 [5/7/2017, 2:59:38 PM] ====================

Any idea?

umesan commented 7 years ago

When does the error occur at what timing?

Mx-Razvan commented 7 years ago

At the homebridge startup. It doesn't run at all

ifongie commented 7 years ago

i have similar issue when Homebridge starts:

[5/8/2017, 2:33:02 PM] ERROR LOADING PLUGIN homebridge-roomba: stdout 14:33:02 [5/8/2017, 2:33:02 PM] Error: Plugin /usr/local/lib/node_modules/homebridge-roomba does not contain the 'homebridge' package in 'engines'. stdout 14:33:02 at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:49:11) stdout 14:33:02 at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:132:14) stdout 14:33:02 at Array.forEach (native) stdout 14:33:02 at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:128:22) stdout 14:33:02 at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:51:24) stdout 14:33:02 at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16) stdout 14:33:02 at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) stdout 14:33:02 at Module._compile (module.js:571:32) stdout 14:33:02 at Object.Module._extensions..js (module.js:580:10) stdout 14:33:02 at Module.load (module.js:488:32)

brn2prgrm commented 7 years ago

Similar startup error here: 22:09:47 - ==================== 22:09:47 - ERROR LOADING PLUGIN homebridge-roomba: 22:09:47 - Error: Plugin /Users/mikeds/.npm-packages/lib/node_modules/homebridge-roomba does not contain the 'homebridge' package in 'engines'. at Plugin.load (/Users/mikeds/.npm-packages/lib/node_modules/homebridge/lib/plugin.js:49:11) at Server. (/Users/mikeds/.npm-packages/lib/node_modules/homebridge/lib/server.js:132:14) at Array.forEach (native) at Server._loadPlugins (/Users/mikeds/.npm-packages/lib/node_modules/homebridge/lib/server.js:128:22) at new Server (/Users/mikeds/.npm-packages/lib/node_modules/homebridge/lib/server.js:51:24) at module.exports (/Users/mikeds/.npm-packages/lib/node_modules/homebridge/lib/cli.js:26:16) at Object. (/Users/mikeds/.npm-packages/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.runMain (module.js:590:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

I'm using JSON Node v8.0.0 right now and I only have problems with this project. In fact, using the Roomba890 project yields no errors, but it is older code. I will be using that for the time being. Let me know how I can help troubleshoot!

amitgandhinz commented 7 years ago

I'm getting the same error as above. Im running on a RPi. I'll see how i go with the Roomba980 project.

amitgandhinz commented 7 years ago

looking at other home bridge plugins, i believe you need to add the following to the package.json file:

"engines": {
    "node": ">=0.12.0",
    "homebridge": ">=0.2.0"
  }
jchristman commented 7 years ago

Any chance you could push this change to the npm repository? I'm getting this error also. Thanks!

iRonin commented 6 years ago

Could we have this one in?

umesan commented 6 years ago

Thank you.