Open ravedoglv opened 6 years ago
I’m sorry but I’m not able to help with problems dealing with npm and installation. I just don’t know enough. I ran some searches though. People claim issues similar to yours may be related to npm version, permissions, using sudo when not needed, using root etc. Nothing consistent. You may also check npm documentation for other possible commands that can install directly from github. One more thing. Are you able to install other npm packages on your system? Let me know if you’re able to solve the issue you have. Good luck.
I had the same error when using the version of NodeJS which came with Raspbian and running npm as root
I worked around the issue by installing NodeJS through N using n-install to get latest LTS and then installing homebridge and this plugin without sudo (but still with -g).
In order to run it as a service I used pm2 which allowed me to keep it running under my uid. End result is great - homebridge launches at boot and this plug-in has full access to the GPIO pins.
I too had this issue, and I just want to add that I followed @jadomski's comment and installed node using n-install on raspberry pi os lite, installed homebridge without sudo, ran the install command from this repo's instructions without sudo, and it all worked perfectly fine. For the life of me I could not figure out how to make the permissions work using either the official homebridge pi image, or following the official instructions to install on top of RPiOS.
When attempting to install the plugin i get an error. Any ideas?
The log file shows: