Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi #17

Open
ghost opened this issue Jun 7, 2018 · 1 comment
Open

Hi #17

ghost opened this issue Jun 7, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 7, 2018

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

@danieldulaney
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant