Giter VIP home page Giter VIP logo

homebridge-own's People

Contributors

lionep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

homebridge-own's Issues

Install failed : Command failed: /usr/bin/git clone -q git://github.com/KhaosT/ed25519.git

Hello,

I am running node v10.1.0 on my Raspberry Pi 3 and I am trying to install homebridge-own but it fails.
I don't understand why it fails on permission rights because I am running the install commande with sudo as you can see :

pi@raspberrypi:~ $  sudo npm install -g --unsafe-perm homebridge-own
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/KhaosT/ed25519.git /root/.npm/_cacache/tmp/git-clone-5ea95c33
npm ERR! fatal: impossible de cr�er les r�pertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-5ea95c33': Permission non accord�e
npm ERR! 

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

Could you tell me why it is trying to clone node-srp ?

pi@raspberrypi:~ $ sudo cat /root/.npm/_logs/2018-06-30T08_49_39_016Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   '--unsafe-perm',
1 verbose cli   'homebridge-own' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 6fb0b50200270c9c
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/homebridge-own 499ms (from cache)
8 silly pacote tag manifest for homebridge-own@latest fetched in 607ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule [email protected] checking installable status
14 http fetch GET 304 https://registry.npmjs.org/bluebird 145ms (from cache)
15 silly pacote range manifest for bluebird@^3.4.1 fetched in 191ms
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/hap-nodejs 299ms (from cache)
18 silly pacote range manifest for hap-nodejs@^0.3.2 fetched in 326ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/lodash 331ms (from cache)
21 silly pacote range manifest for lodash@^4.14.1 fetched in 342ms
22 silly resolveWithNewModule [email protected] checking installable status
23 http fetch GET 304 https://registry.npmjs.org/mdns 225ms (from cache)
24 silly pacote range manifest for mdns@^2.3.2 fetched in 236ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 304 https://registry.npmjs.org/node-persist 237ms (from cache)
27 silly pacote range manifest for node-persist@^0.0.8 fetched in 248ms
28 silly resolveWithNewModule [email protected] checking installable status
29 http fetch GET 304 https://registry.npmjs.org/debug 258ms (from cache)
30 silly pacote range manifest for debug@^2.2.0 fetched in 273ms
31 silly resolveWithNewModule [email protected] checking installable status
32 silly fetchPackageMetaData error for ed25519@git://github.com/KhaosT/ed25519.git Command failed: /usr/bin/git clone -q git://github.com/KhaosT/ed25519.git /root/.npm/_cacache/tmp/git-clone-5ea95c33
32 silly fetchPackageMetaData fatal: impossible de cr�er les r�pertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-5ea95c33': Permission non accord�e
33 silly fetchPackageMetaData error for curve25519@git://github.com/KhaosT/node-curve25519.git Command failed: /usr/bin/git clone -q git://github.com/KhaosT/node-curve25519.git /root/.npm/_cacache/tmp/git-clone-73558ac9
33 silly fetchPackageMetaData fatal: impossible de cr�er les r�pertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-73558ac9': Permission non accord�e
34 silly fetchPackageMetaData error for srp@git://github.com/KhaosT/node-srp.git Command failed: /usr/bin/git clone -q git://github.com/KhaosT/node-srp.git /root/.npm/_cacache/tmp/git-clone-af26992e
34 silly fetchPackageMetaData fatal: impossible de cr�er les r�pertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-af26992e': Permission non accord�e
35 verbose stack Error: Command failed: /usr/bin/git clone -q git://github.com/KhaosT/ed25519.git /root/.npm/_cacache/tmp/git-clone-5ea95c33
35 verbose stack fatal: impossible de cr�er les r�pertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-5ea95c33': Permission non accord�e
35 verbose stack
35 verbose stack     at ChildProcess.exithandler (child_process.js:282:12)
35 verbose stack     at ChildProcess.emit (events.js:182:13)
35 verbose stack     at maybeClose (internal/child_process.js:957:16)
35 verbose stack     at Socket.stream.socket.on (internal/child_process.js:378:11)
35 verbose stack     at Socket.emit (events.js:182:13)
35 verbose stack     at Pipe._handle.close [as _onclose] (net.js:598:12)
36 verbose cwd /home/pi
37 verbose Linux 4.14.30-v7+
38 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "--unsafe-perm" "homebridge-own"
39 verbose node v10.1.0
40 verbose npm  v5.6.0
41 error code 128
42 error Command failed: /usr/bin/git clone -q git://github.com/KhaosT/ed25519.git /root/.npm/_cacache/tmp/git-clone-5ea95c33
42 error fatal: impossible de cr�er les r�pertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-5ea95c33': Permission non accord�e
43 verbose exit [ 1, true ]

Regards,
Ludovic

Installation fails because of bignum

Hello again Lionel!

On my Synology NAS running the oznu/homebridge Docker image (node 10.16.3) or on my Raspberry Pi running Raspbian (node 8.11.1), install of homebridge-own fails:

node-pre-gyp ERR! Tried to download(403): https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v57-linux-arm.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, glibc) (falling back to source compile with node-gyp)

make : on entre dans le répertoire « /usr/local/lib/node_modules/homebridge-own/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/build »
  CXX(target) Release/obj.target/bignum/bignum.o
../bignum.cc: In function ‘int BN_jacobi_priv(const BIGNUM*, const BIGNUM*, int*, BN_CTX*)’:
../bignum.cc:143:6: error: expected ‘(’ before ‘BN_is_zero’
   if BN_is_zero(a1) /* step 1 */
      ^~~~~~~~~~
../bignum.cc:145:6: error: expected ‘(’ before ‘BN_is_one’
   if BN_is_one(a1) /* step 2 */
      ^~~~~~~~~
../bignum.cc: At global scope:
../bignum.cc:183:10: error: field ‘bignum_’ has incomplete type ‘BIGNUM {aka bignum_st}’
   BIGNUM bignum_;
          ^~~~~~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from ../bignum.cc:9:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
 typedef struct bignum_st BIGNUM;
                ^~~~~~~~~
../bignum.cc: In constructor ‘BigNum::BigNum(const v8::String::Utf8Value&, uint64_t)’:
../bignum.cc:296:19: error: ‘BN_init’ was not declared in this scope
   BN_init(&bignum_);
                   ^
../bignum.cc: In constructor ‘BigNum::BigNum(uint64_t)’:
../bignum.cc:325:19: error: ‘BN_init’ was not declared in this scope
   BN_init(&bignum_);
                   ^
../bignum.cc: In constructor ‘BigNum::BigNum(int64_t)’:
../bignum.cc:339:19: error: ‘BN_init’ was not declared in this scope
   BN_init(&bignum_);
                   ^
../bignum.cc: In constructor ‘BigNum::BigNum(BIGNUM*)’:
../bignum.cc:361:19: error: ‘BN_init’ was not declared in this scope
   BN_init(&bignum_);
                   ^
../bignum.cc: In constructor ‘BigNum::BigNum()’:
../bignum.cc:367:19: error: ‘BN_init’ was not declared in this scope
   BN_init(&bignum_);
                   ^

I've truncated the output, it continues like this until it shows:

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "--unsafe-perm" "homebridge-own"
npm ERR! cwd /home/dietpi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/dietpi/npm-debug.log
npm ERR! not ok code 0

While you're at it, there are a few warnings about deprecated libraries ;)

(node:12110) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

then

npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

Can you easily fix this? 🤞🏻

Can't install the module

Hi Lionel!

We're neighbors, I live in Fort d'Issy, so I've been using your module for quite some time. :-)

For some reason, I always had to uninstall homebridge and homebridge-own and then reinstall it after each monthly or weekly upgrade of my Arch Linux server, which I think always includes an update of node.js or NPM. I've never figured why. Until now I was able to do it quickly so it was OK.

But since my last system upgrade, I can't reinstall homebridge-own.

Here is what I get:

romain@robot ~ % sudo npm install -g homebridge-own
[sudo] Mot de passe de romain : 
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/KhaosT/node-srp.git /root/.npm/_cacache/tmp/git-clone-06561bff
npm ERR! fatal: impossible de créer les répertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-06561bff': Permission non accordée
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-11-29T14_23_02_215Z-debug.log
romain@robot ~ % sudo ls -lA /root/.npm/
total 16
drwxr-xr-x 5 root root 4096 25 nov. 20:36 _cacache
drwxr-xr-x 2 root root 4096 25 nov. 20:37 _locks
drwxr-xr-x 2 root root 4096 29 nov. 15:23 _logs
-rw-r--r-- 1 root root 171 29 nov. 15:23 anonymous-cli-metrics.json
romain@robot ~ % sudo ls -lA /root/.npm/_cacache
total 12
drwxr-xr-x 4 root root 4096 25 nov. 20:36 content-v2
drwxr-xr-x 80 root root 4096 25 nov. 20:38 index-v5
drwxr-xr-x 2 root root 4096 29 nov. 15:23 tmp
romain@robot ~ % sudo ls -lA /root/.npm/_cacache/tmp
total 0

And the log:

romain@robot ~ % sudo cat /root/.npm/_logs/2017-11-29T14_23_02_215Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'homebridge-own' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session df212725c66b7cbd
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/homebridge-own 214ms (from cache)
8 silly pacote tag manifest for homebridge-own@latest fetched in 271ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule [email protected] checking installable status
14 http fetch GET 304 https://registry.npmjs.org/bluebird 101ms (from cache)
15 silly pacote range manifest for bluebird@^3.4.1 fetched in 120ms
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/hap-nodejs 132ms (from cache)
18 silly pacote range manifest for hap-nodejs@^0.3.2 fetched in 144ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/lodash 149ms (from cache)
21 silly pacote range manifest for lodash@^4.14.1 fetched in 154ms
22 silly resolveWithNewModule [email protected] checking installable status
23 http fetch GET 304 https://registry.npmjs.org/debug 80ms (from cache)
24 silly pacote range manifest for debug@^2.2.0 fetched in 88ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 304 https://registry.npmjs.org/mdns 90ms (from cache)
27 http fetch GET 304 https://registry.npmjs.org/node-persist 92ms (from cache)
28 silly pacote range manifest for mdns@^2.3.2 fetched in 98ms
29 silly resolveWithNewModule [email protected] checking installable status
30 silly pacote range manifest for node-persist@^0.0.8 fetched in 100ms
31 silly resolveWithNewModule [email protected] checking installable status
32 silly fetchPackageMetaData error for srp@git://github.com/KhaosT/node-srp.git Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/KhaosT/node-srp.git /root/.npm/_cacache/tmp/git-clone-06561bff
32 silly fetchPackageMetaData fatal: impossible de créer les répertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-06561bff': Permission non accordée
33 silly fetchPackageMetaData error for curve25519@git://github.com/KhaosT/node-curve25519.git Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/KhaosT/node-curve25519.git /root/.npm/_cacache/tmp/git-clone-b54dae27
33 silly fetchPackageMetaData fatal: impossible de créer les répertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-b54dae27': Permission non accordée
34 silly fetchPackageMetaData error for ed25519@git://github.com/KhaosT/ed25519.git Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/KhaosT/ed25519.git /root/.npm/_cacache/tmp/git-clone-1f1e9170
34 silly fetchPackageMetaData fatal: impossible de créer les répertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-1f1e9170': Permission non accordée
35 verbose stack Error: Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/KhaosT/node-srp.git /root/.npm/_cacache/tmp/git-clone-06561bff
35 verbose stack fatal: impossible de créer les répertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-06561bff': Permission non accordée
35 verbose stack
35 verbose stack at ChildProcess.exithandler (child_process.js:272:12)
35 verbose stack at ChildProcess.emit (events.js:159:13)
35 verbose stack at maybeClose (internal/child_process.js:943:16)
35 verbose stack at Socket.stream.socket.on (internal/child_process.js:363:11)
35 verbose stack at Socket.emit (events.js:159:13)
35 verbose stack at Pipe._handle.close [as _onclose] (net.js:558:12)
36 verbose cwd /home/romain
37 verbose Linux 4.13.12-1-ARCH
38 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "homebridge-own"
39 verbose node v9.2.0
40 verbose npm v5.5.1
41 error code 128
42 error Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/KhaosT/node-srp.git /root/.npm/_cacache/tmp/git-clone-06561bff
42 error fatal: impossible de créer les répertoires de premier niveau dans '/root/.npm/_cacache/tmp/git-clone-06561bff': Permission non accordée
43 verbose exit [ 1, true ]

I've tried to make a clean install of NodeJS and NPM, then homebridge, then homebridge-own on my Mac (using Brew), I have the same kind of error.

Any idea?

Can't control anything

Hello Lionel, it's me again!

I have a Legrand MyHome F454 server running firmware 2.0.51. It works with commands sent directly via netcat or with the Android app OpenWebNet.

I've installed homebridge and homebridge-own on Raspbian on my Raspberry Pi 2.

homebridge seems to be working as I've been able to add a dummy switch. It's available on my iPhone's Home app and I see the result into the homebridge console when I activate it.

But homebridge-own doesn't detect any of my MyHome accessory, and even if I add manually one of my lights, it's not available in the Home iOS app.

Any suggestion?

Here's my config.json file:

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:50",
        "port": 51826,
        "pin": "031-45-154"
    },
    
    "platforms": [
        {
            "platform" : "own",
            "name" : "OwnServer",
	    "server": "192.168.1.250",
	    "bindings": {
		    "lights": {
			    "11": "Entree"
		    }
	    }
        }
    ],

    "accessories": [
	    {
		    "accessory": "DummySwitch",
		    "name": "DummySwitch"
	    }
    ]
}

And homebridge's console:

[30/06/2018, 01:36:28] Loaded config.json with 1 accessories and 1 platforms.
[30/06/2018, 01:36:28] ---
[30/06/2018, 01:36:28] Loaded plugin: homebridge-dummy
[30/06/2018, 01:36:28] Registering accessory 'homebridge-dummy.DummySwitch'
[30/06/2018, 01:36:28] ---
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[30/06/2018, 01:36:31] Loaded plugin: homebridge-own
[30/06/2018, 01:36:31] Registering platform 'homebridge-own.own'
[30/06/2018, 01:36:31] ---
[30/06/2018, 01:36:31] Loading 1 platforms...
[30/06/2018, 01:36:31] [OwnServer] Initializing own platform...
[30/06/2018, 01:36:31] [OwnServer] Constructing platform...
[30/06/2018, 01:36:31] [OwnServer] Fetch OWN accessories
[30/06/2018, 01:36:31] Loading 1 accessories...
[30/06/2018, 01:36:31] [DummySwitch] Initializing DummySwitch accessory...
[30/06/2018, 01:36:31] [OwnServer] Lights : []
[30/06/2018, 01:36:31] [OwnServer] Automations : []
[30/06/2018, 01:36:31] [OwnServer] Temp sensors : []
Setup Payload:
X-HM://0023ISYWYALA9
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[30/06/2018, 01:36:32] Homebridge is running on port 51826.
[30/06/2018, 01:37:27] [DummySwitch] Setting switch to true
[30/06/2018, 01:37:28] [DummySwitch] Setting switch to false

img_0914

Can't install the plugin

I tried to install the plugin... but after a good start, the process stops. Here is the log:

pi@raspberrypi:~ $ sudo npm -g install homebridge-own

> [email protected] install /usr/lib/node_modules/homebridge-own/node_modules/mdns
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.3.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge-own/node_modules/mdns/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge-own/node_modules/mdns/build'
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
  CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
  SOLINK_MODULE(target) Release/obj.target/dns_sd_bindings.node
  COPY Release/dns_sd_bindings.node
make: Leaving directory '/usr/lib/node_modules/homebridge-own/node_modules/mdns/build'

> [email protected] install /usr/lib/node_modules/homebridge-own/node_modules/curve25519
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.3.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge-own/node_modules/curve25519/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge-own/node_modules/curve25519/build'
  CXX(target) Release/obj.target/curve/node_curve.o
  SOLINK_MODULE(target) Release/obj.target/curve.node
  COPY Release/curve.node
make: Leaving directory '/usr/lib/node_modules/homebridge-own/node_modules/curve25519/build'

> [email protected] install /usr/lib/node_modules/homebridge-own/node_modules/ed25519
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.3.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge-own/node_modules/ed25519/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge-own/node_modules/ed25519/build'
  CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
  CC(target) Release/obj.target/ed25519/src/ed25519/open.o
  CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
  CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
  CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
  CXX(target) Release/obj.target/ed25519/src/ed25519.o
  SOLINK_MODULE(target) Release/obj.target/ed25519.node
  COPY Release/ed25519.node
make: Leaving directory '/usr/lib/node_modules/homebridge-own/node_modules/ed25519/build'

> [email protected] install /usr/lib/node_modules/homebridge-own/node_modules/bignum
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v51-linux-arm.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI) (falling back to source compile with node-gyp) 
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.3.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge-own/node_modules/bignum/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge-own/node_modules/bignum/build'
make: *** No rule to make target '../.node-gyp/7.3.0/include/node/common.gypi', needed by 'Makefile'.  Stop.
make: Leaving directory '/usr/lib/node_modules/homebridge-own/node_modules/bignum/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.38-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/homebridge-own/node_modules/bignum/binding/bignum.node" "--module_name=bignum" "--module_path=/usr/lib/node_modules/homebridge-own/node_modules/bignum/binding"
gyp ERR! cwd /usr/lib/node_modules/homebridge-own/node_modules/bignum
gyp ERR! node -v v7.3.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/homebridge-own/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/lib/node_modules/homebridge-own/node_modules/bignum/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/homebridge-own/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:885:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.38-v7+
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/homebridge-own/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/homebridge-own/node_modules/bignum
node-pre-gyp ERR! node -v v7.3.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/homebridge-own/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/lib/node_modules/homebridge-own/node_modules/bignum/binding' (1)
/usr/lib
└── (empty)

npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "-g" "install" "homebridge-own"
npm ERR! node v7.3.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bignum
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/npm-debug.log
npm ERR! code 1

Can anyone help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.