Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

The 1.4.0 version cannot register in homebridge #57

Open
lxy1992 opened this issue Jul 30, 2018 · 1 comment
Open

The 1.4.0 version cannot register in homebridge #57

lxy1992 opened this issue Jul 30, 2018 · 1 comment

Comments

@lxy1992
Copy link

lxy1992 commented Jul 30, 2018

The plugin works fine in 1.2.2, but cannot work in 1.4.0
Hope the following error message may help you fix this issue. Thank you.

[7/30/2018, 10:05:40 PM] ---
[7/30/2018, 10:05:40 PM] ====================
[7/30/2018, 10:05:40 PM] ERROR LOADING PLUGIN homebridge-mi-air-purifier:
[7/30/2018, 10:05:40 PM] /usr/lib/node_modules/homebridge-mi-air-purifier/index.js:296
    getLockPhysicalControls: async function(callback) {
                                   ^^^^^^^^

SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:72:22)
[7/30/2018, 10:05:40 PM] ====================
@fenway062213
Copy link

Thanks for posting this. I know it’s been a while but I tried installing 1.2.2 when 1.4.0 wouldn’t work, but terminal is giving me an error message that that version isn’t found. Any ideas?

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

2 participants