marcoraddatz / homebridge-docker

Dockerized Homebridge. No plugins pre-defined, hassle-free setup. Read instructions!
Apache License 2.0
128 stars 47 forks source link

node.js version #10

Closed bebeboy closed 7 years ago

bebeboy commented 7 years ago

I have a problem while startup the npm - homebridge-broadlink-rm. The Author suggested me to upgrade node to the latest version. Could you please share me some hints? Sorry that I am not good at programming stuff.

marcoraddatz commented 7 years ago

You could upgrade to latest node via using the install.sh. This link might help: https://davidwalsh.name/upgrade-nodejs

marcoraddatz commented 7 years ago

Oops. Hit the wrong button!

bebeboy commented 7 years ago

Thanks for your reply. While trying to install the latest node.js. I do a clean re-install of homebridge and found two error messages I haven't seen before. Is that something I should look at?

[Second part error message] 2017-04-11 10:21:07 stdout at Function.Module._load (module.js:424:3) 2017-04-11 10:21:07 stdout at tryModuleLoad (module.js:432:12) 2017-04-11 10:21:07 stdout at Module.load (module.js:473:32) 2017-04-11 10:21:07 stdout at Object.Module._extensions..js (module.js:565:10) 2017-04-11 10:21:07 stdout at Module._compile (module.js:556:32) 2017-04-11 10:21:07 stdout at Object. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/encryption.js:3:18) 2017-04-11 10:21:07 stdout at require (internal/module.js:20:19) 2017-04-11 10:21:07 stdout at Module.require (module.js:483:17) 2017-04-11 10:21:07 stdout at Function.Module._load (module.js:403:25) 2017-04-11 10:21:07 stdout at Function.Module._resolveFilename (module.js:455:15) 2017-04-11 10:21:07 stdout Error: Cannot find module 'curve25519-n' 2017-04-11 10:21:07 stdout
2017-04-11 10:21:07 stdout ^ 2017-04-11 10:21:07 stdout throw err; 2017-04-11 10:21:07 stdout module.js:457

..... [First part error message] 2017-04-11 10:19:15 stdout npm ERR! code 1 2017-04-11 10:19:15 stdout npm ERR! /root/.homebridge/npm-debug.log 2017-04-11 10:19:15 stdout npm ERR! Please include the following file with any support request: 2017-04-11 10:19:15 stdout  2017-04-11 10:19:15 stdout npm ERR! https://github.com/npm/npm/issues 2017-04-11 10:19:15 stdout npm ERR! If you need help, you may report this error at: 2017-04-11 10:19:15 stdout npm ERR! 2017-04-11 10:19:15 stdout npm ERR! EXDEV: cross-device link not permitted, rename '/usr/lib/node_modules/homebridge/node_modules/mkdirp' -> '/usr/lib/node_modules/homebridge/node_modules/.mkdirp.DELETE' 2017-04-11 10:19:15 stdout  2017-04-11 10:19:15 stdout npm ERR! syscall rename 2017-04-11 10:19:15 stdout npm ERR! errno -18 2017-04-11 10:19:15 stdout npm ERR! code EXDEV 2017-04-11 10:19:15 stdout npm ERR! path /usr/lib/node_modules/homebridge/node_modules/mkdirp 2017-04-11 10:19:15 stdout npm ERR! npm  v3.10.3 2017-04-11 10:19:15 stdout npm ERR! node v6.7.0 2017-04-11 10:19:15 stdout npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "update" "-g" "homebridge" 2017-04-11 10:19:15 stdout npm ERR! Linux 3.10.102

Demonderik commented 7 years ago

Hi Marco!

The similar situation here. Homebridge won't work from yesterday. I attached my config files and log.

homebridge.zip

homebridge.html.zip

marcoraddatz commented 7 years ago

@bebeboy The auto-update might have broken Homebridge. Can you verify, if the error still appears in version 2.2?

@Demonderik Config seems to be ok so far. Can you please also check version 2.2?

Demonderik commented 7 years ago

Marco, Version 2.2 runs fine! Thank you.

bebeboy commented 7 years ago

It disappeared. Thank you so much. Working on node.js update :)

marcoraddatz commented 7 years ago

I might update the node version soon, since the nodesource project seem to be dead. Considering official node to be used with an alpine image, but closing the ticket for now 😉

bebeboy commented 7 years ago

I can install the latest node.js through install.sh, but homebridge crashed then. Maybe I wait for your next version then. Cheers.

date stream content 2017-04-12 18:51:18 stdout at Module.load (module.js:488:32) 2017-04-12 18:51:18 stdout at Object.Module._extensions..js (module.js:580:10) 2017-04-12 18:51:18 stdout at Module._compile (module.js:571:32) 2017-04-12 18:51:18 stdout at Object. (/usr/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20) 2017-04-12 18:51:18 stdout at require (internal/module.js:20:19) 2017-04-12 18:51:18 stdout at Module.require (module.js:498:17) 2017-04-12 18:51:18 stdout at Function.Module._load (module.js:439:3) 2017-04-12 18:51:18 stdout at tryModuleLoad (module.js:447:12) 2017-04-12 18:51:18 stdout at Module.load (module.js:488:32) 2017-04-12 18:51:18 stdout at Object.Module._extensions..node (module.js:598:18) 2017-04-12 18:51:18 stdout the module (for instance, using npm rebuild ornpm install). 2017-04-12 18:51:18 stdout NODE_MODULE_VERSION 51. Please try re-compiling or re-installing 2017-04-12 18:51:18 stdout NODE_MODULE_VERSION 48. This version of Node.js requires 2017-04-12 18:51:18 stdout was compiled against a different Node.js version using 2017-04-12 18:51:18 stdout Error: The module '/usr/lib/node_modules/homebridge/node_modules/mdns/build/Release/dns_sd_bindings.node' 2017-04-12 18:51:18 stdout
2017-04-12 18:51:18 stdout ^ 2017-04-12 18:51:18 stdout throw ex; 2017-04-12 18:51:18 stdout /usr/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35 2017-04-12 18:51:08 stdout
2017-04-12 18:51:08 stdout  installed : v7.9.0 2017-04-12 18:51:02 stdout 0.0% ######################################################################## 100.0% 2017-04-12 18:50:10 stdout  fetch : https://nodejs.org/dist/v7.9.0/node-v7.9.0-linux-x64.tar.gz 2017-04-12 18:50:10 stdout  mkdir : /usr/local/n/versions/node/7.9.0 2017-04-12 18:50:08 stdout  install : node-v7.9.0