hue2mqtt icon indicating copy to clipboard operation
hue2mqtt copied to clipboard

Hi

Open ghost opened this issue 6 years ago • 1 comments

Could you give a procedure to have hue2mqtt installed and running on Raspberry pi 3. I have installed node.js version 8.x.x and when I run the command

sudo npm install -g hue2mqtt

I get and error: npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'internal/util/types'

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-06-07T12_45_04_668Z-debug.log

Your help will be appreciated Thanks

ghost avatar Jun 07 '18 12:06 ghost

You've made one of the classic blunders: confused Java and Javascript. Despite the similar names, these languages have nothing to do with each other. npm (and nodejs, etc.) are all written to handle Javascript, but this project is written in the completely separate language Java. In order to build and run this project, you will need Java tools, not Javascript tools.

In particular, you need Gradle (a build system -- roughly equivalent to Webpack in the Javascript world), as well as the Java Development Kit (a compiler and runtime -- roughly equivalent to nodejs). Gradle made some changes recently, so you will need version 4 for now (#18 changes this project to work with Gradle 5). This project works with JDK 8 (it might work on later versions, I haven't tested).

danieldulaney avatar Feb 25 '19 01:02 danieldulaney