Closed tonesto7 closed 8 years ago
There should be another error above it. I'm guessing you might have the same issue someone else reported last night.
There seems to be some issue with some people's npmi package (dependency of homebridge-controller link) not updating and/or not installing all dependencies.
First make sure the npmi dependency is in the plugin modules. If not run npm install
in the plugin dir
Next make sure it is the alpha version of npmi (2.0.1-alpha). If not run npm install npmi@2.0.1-alpha
in the plugin dir
Next make sure npm is in the node_modules dir of npmi. If not run npm install
in the npmi dir
I tried all of those suggestions but nothing is working
Actually installing npmi worked after completely removing all node packages and physical files. I had to re-install all homebridge packages and then npmi and now the service startup error went away
ERROR LOADING PLUGIN homebridge-controllerlink: Error: Cannot find module 'npmi/node_modules/npm'
will come up when starting homebridge. Everything was fine before installing homebridgeController.
After deleting platform ... from config.json. homebridge started again with error hint:
After sudo npm uninstall homeBridgeController same messages as before.
After sudo npm rebuild still the same
ERROR LOADING PLUGIN homebridge-controllerlink: Error: Cannot find module 'npmi/node_modules/npm' at Function.Module._resolveFilename (module.js:339:15)
But homebridge can be started and is functional.
I guess Im going to take out the optimization I added. The npm dependency takes a while to install and it needed npm twice (once for npmi and once for the plugin) and it was rebuilding each one. But given it works for some and not others, I'm just going to go back to the slower installs
Unless anyone else knows some npm voodoo I can do instead?
Please try out homebridge-controllerlink 0.3.4. I went back to standard dependencies so hopefully it will fix your issues. Please let me know :+1:
Hi, just tried the new version. HomeBridge came up and is running on my RPi2. So the previously noticed error is gone. Now i'm going to test your App on the Mac. Coming back soon.
Closing this since it seems to have worked for you. Let me know if I need to reopen
Released in homebridge-controllerlink 0.3.4
Having a similar issue unfortunately on OSX El Capitan, but during the installation process.
When having the usr/local/lib/node_modules directory open I can see the homebridge-controller folder being created but when I receive the error at the end of installation, the folder ends up getting deleted and the node_modules directory gets reverted as if homebridge-controller never installed.
I do have npmi and npm directories in the usr/local/lib/node_modules directory and npm is inside the nmpi/node_modules directory.
Any help would be appreciated as I would love to use your plugin :)
'Error: The requested platform 'HomeBridgeControllerLink' was not registered by any plugin. Feb 15 19:54:08 HomeBridge homebridge[1012]: at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:88:13) Feb 15 19:54:08 HomeBridge homebridge[1012]: at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:194:45) Feb 15 19:54:08 HomeBridge homebridge[1012]: at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:35:36) Feb 15 19:54:08 HomeBridge homebridge[1012]: at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:23:16) Feb 15 19:54:08 HomeBridge homebridge[1012]: at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at Module._compile (module.js:410:26)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at Object.Module._extensions..js (module.js:417:10)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at Module.load (module.js:344:32)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at Function.Module._load (module.js:301:12)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at Function.Module.runMain (module.js:442:10)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at startup (node.js:136:18)
Feb 15 19:54:08 HomeBridge homebridge[1012]: at node.js:966:3'
I have removed the node package, tried downloading from git and installing manually. Nothing is working. My only option right now is to remove the platform reference from the config.json Any suggestions?