materik / homebridge-harmonyhub-plugin

Logitech HarmonyHub plugin for Homebridge
39 stars 2 forks source link

npm publish #12

Closed nicoh88 closed 5 years ago

nicoh88 commented 5 years ago

Why have not you released your plugin with NPM yet?

Then npm -g outdated --long would also run properly and display when there is a new version.

materik commented 5 years ago

I should. Wanted to wait before it felt more stable. Might be good time to tho :)

nicoh88 commented 5 years ago

Compared to what others publish, yours is awesome and stable.

materik commented 5 years ago

I'll wait for one other person to confirm the solution to #8 and after it has been closed I will publish :+1:

materik commented 5 years ago

it's published 🥳 https://www.npmjs.com/package/@materik/homebridge-harmonyhub

nicoh88 commented 5 years ago
npm uninstall -g homebridge-harmonyhub
npm install -g @materik/homebridge-harmonyhub
nicoh88 commented 5 years ago

Uh, problem. @materik

With npm install -g @materik/homebridge-harmonyhub the packages becomes installed in /usr/lib/node_modules/@materik/homebridge-harmonyhub.

Homebridge doesn't found the plugin...

/usr/lib/node_modules/homebridge/lib/api.js:122
      throw new Error("The requested platform '" + name + "' was not registered by any plugin.");

UPDATE1:

ln -s /usr/lib/node_modules/@materik/homebridge-harmonyhub/ /usr/lib/node_modules/homebridge-harmonyhub does not solve the problem.

UPDATE2:

npm install -g materik/homebridge-harmonyhub#master install the package also in the @materik folder.

UPDATE3:

npm install -g materik/homebridge-harmonyhub#0.5.0 is a workaround.

materik commented 5 years ago

you're right. the problem is HomeBridge cannot find the plugin if it's within two folders. would have though UPDATE1 would solve it. the easiest fix is probably to rename the package but not sure what to call it then since homebridge-harmonyhub is taken :P

materik commented 5 years ago

changed the name to homebridge-harmonyhub-plugin which can now be installed by npm install -g homebridge-harmonyhub-plugin. the @materik/homebridge-harmonyhub package has been removed.