question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing Homebridge on Raspian Jessie

See original GitHub issue

I’m following the Raspian Jessie wiki article on how to get homebridge running but am running into an error while actually installing Homebridge. Any help would be appreciated. Here is the output from my command: npm install -g homebridge --unsafe-perm

npm WARN engine homebridge@0.3.4: wanted: {“node”:“>=0.12.0”} (current: {“node”:“0.10.29”,“npm”:“1.4.21”}) \

curve25519@1.1.0 install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519 node-gyp rebuild

make: Entering directory ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519/build’ CXX(target) Release/obj.target/curve/node_curve.o In file included from …/node_curve.cc:9:0: …/node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’ static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8; ^ curve.target.mk:82: recipe for target ‘Release/obj.target/curve/node_curve.o’ failed make: *** [Release/obj.target/curve/node_curve.o] Error 1 make: Leaving directory ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519/build’ gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12) gyp ERR! System Linux 4.4.11-v7+ gyp ERR! command “nodejs” “/usr/bin/node-gyp” “rebuild” gyp ERR! cwd /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519 gyp ERR! node -v v0.10.29 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm WARN engine deep-extend@0.4.1: wanted: {“node”:“>=0.12.0”,“iojs”:“>=1.0.0”} (current: {“node”:“0.10.29”,“npm”:“1.4.21”}) npm WARN This failure might be due to the use of legacy binary “node” npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! error rolling back Error: ENOTEMPTY, rmdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/node_modules/nan/doc’ npm ERR! error rolling back hap-nodejs@0.3.2 { [Error: ENOTEMPTY, rmdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/node_modules/nan/doc’] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: ‘ENOTEMPTY’, npm ERR! error rolling back path: ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/node_modules/nan/doc’ } npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/node_modules/nan/nan.h’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/node_modules/nan/nan.h npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/node_modules/nan/nan.h npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar/test/dir-normalization.tar’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar/test/dir-normalization.tar npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar/test/dir-normalization.tar npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/request/CONTRIBUTING.md’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/request/CONTRIBUTING.md npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/request/CONTRIBUTING.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! EEXIST, mkdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/lib’ File exists: /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/lib Move it away, and try again.

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/lib npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_transform.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/node_modules/nan/doc/v8_internals.md’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/node_modules/nan/doc/v8_internals.md npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/node_modules/nan/doc/v8_internals.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, utime ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/license’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/license npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/license npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call utimes npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! error rolling back Error: ENOTEMPTY, rmdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/strip-ansi’ npm ERR! error rolling back homebridge@0.3.4 { [Error: ENOTEMPTY, rmdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/strip-ansi’] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: ‘ENOTEMPTY’, npm ERR! error rolling back path: ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/strip-ansi’ } npm ERR! curve25519@1.1.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the curve25519@1.1.0 install script. npm ERR! This is most likely a problem with the curve25519 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls curve25519 npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! EEXIST, mkdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width’ File exists: /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width Move it away, and try again.

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/string-width/readme.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! EEXIST, mkdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align’ File exists: /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align Move it away, and try again.

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/LICENSE npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! EEXIST, mkdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode’ File exists: /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode Move it away, and try again.

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/index.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! Error: ENOENT, open ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/README.md’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/README.md npm ERR! code ENOENT npm ERR! errno 34 npm ERR! EEXIST, mkdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy’ File exists: /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy Move it away, and try again.

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! error rolling back Error: ENOTEMPTY, rmdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits’ npm ERR! error rolling back node-pre-gyp@0.6.30 { [Error: ENOTEMPTY, rmdir ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits’] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: ‘ENOTEMPTY’, npm ERR! error rolling back path: ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits’ } npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/README.md’ npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.4.11-v7+ npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” “homebridge” “–unsafe-perm” npm ERR! cwd /home/pi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/README.md npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/README.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

15reactions
EZtheOGcommented, Oct 17, 2016

@coollorenzo -

I was getting the error you listed (In file included from ../src/dns_sd.cpp:1:0: ../src/mdns.hpp:32:20: fatal error: dns_sd.h: No such file or directory #include ) and what fixed it for me was:

sudo apt-get install build-essential libavahi-compat-libdnssd-dev git

0reactions
stale[bot]commented, Apr 9, 2018

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install homebridge on Raspberry Pi · Issue #1174 - GitHub
make: Entering directory '/opt/node/lib/node_modules/homebridge/node_modules/mdns/build'
Read more >
HomeBridge on Raspbian Jesse Lite - Spiceworks Community
There are guides on how to install Homebridge on Jesse Lite on a Raspberry Pi 2 manually but the advice is to try...
Read more >
Raspberry Pi: I cant seem to install nodejs due to “unmet ...
So i am trying to install homebridge on my raspberry pi following this instruction…
Read more >
Problem installing Homebridge (dependencies not installed)
Hi, I'm traying to install Homebridge. I get an error when doing: sudo apt-get install libavahi-compat-libdnssd-dev .
Read more >
homebridge-ecobee3-lite-sensors - npm
Homebridge plugin that exposes Ecobee 3 Lite sensors as HomeKit accessories. Latest version: 0.2.0, last published: 3 years ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found