renssies / homebridge-am43-blinds

A homebridge plugin to control the AM43 based blind motors in HomeKit
MIT License
18 stars 6 forks source link

Failed at the @abandonware/noble@1.9.2-9 install script #2

Closed breitburg closed 4 years ago

breitburg commented 4 years ago

Console:

pi@homebridge:~ $ sudo npm install -g https://github.com/renssies/homebridge-am43-blinds

> usb@1.6.3 install /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/usb
> prebuild-install --verbose || node-gyp rebuild

prebuild-install info begin Prebuild-install version 5.3.5
prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/12.18.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/usb/build'
gyp ERR! System Linux 4.19.118-v7l+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/usb
gyp ERR! node -v v12.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 

> @abandonware/bluetooth-hci-socket@0.5.3-5 install /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using needle for node-pre-gyp https download 
node-pre-gyp WARN Pre-built binaries not installable for @abandonware/bluetooth-hci-socket@0.5.3-5 and node@12.18.1 (node-v72 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding' 
gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/12.18.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/build'
gyp ERR! System Linux 4.19.118-v7l+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node" "--module_name=binding" "--module_path=/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket
gyp ERR! node -v v12.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node --module_name=binding --module_path=/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Linux 4.19.118-v7l+
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket
node-pre-gyp ERR! node -v v12.18.1
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node --module_name=binding --module_path=/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/lib/binding --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)

> @abandonware/noble@1.9.2-9 install /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble
> node-gyp rebuild

gyp WARN EACCES current user ("nobody") does not have permission to access the dev dir "/root/.cache/node-gyp/12.18.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble/build'
gyp ERR! System Linux 4.19.118-v7l+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble
gyp ERR! node -v v12.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 (node_modules/homebridge-am43-blinds/node_modules/usb):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-5 (node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-5 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @abandonware/noble@1.9.2-9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @abandonware/noble@1.9.2-9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-07-29T19_12_26_918Z-debug.log

Log file:

2650 info lifecycle nan@2.13.2~install: nan@2.13.2
2651 silly install util-deprecate@1.0.2
2652 info lifecycle util-deprecate@1.0.2~install: util-deprecate@1.0.2
2653 silly install readable-stream@3.6.0
2654 info lifecycle readable-stream@3.6.0~install: readable-stream@3.6.0
2655 silly install bl@4.0.2
2656 info lifecycle bl@4.0.2~install: bl@4.0.2
2657 silly install readable-stream@2.3.7
2658 info lifecycle readable-stream@2.3.7~install: readable-stream@2.3.7
2659 silly install are-we-there-yet@1.1.5
2660 info lifecycle are-we-there-yet@1.1.5~install: are-we-there-yet@1.1.5
2661 silly install readable-stream@3.6.0
2662 info lifecycle readable-stream@3.6.0~install: readable-stream@3.6.0
2663 silly install which-pm-runs@1.0.0
2664 info lifecycle which-pm-runs@1.0.0~install: which-pm-runs@1.0.0
2665 silly install wide-align@1.1.3
2666 info lifecycle wide-align@1.1.3~install: wide-align@1.1.3
2667 silly install gauge@2.7.4
2668 info lifecycle gauge@2.7.4~install: gauge@2.7.4
2669 silly install npmlog@4.1.2
2670 info lifecycle npmlog@4.1.2~install: npmlog@4.1.2
2671 silly install wrappy@1.0.2
2672 info lifecycle wrappy@1.0.2~install: wrappy@1.0.2
2673 silly install once@1.4.0
2674 info lifecycle once@1.4.0~install: once@1.4.0
2675 silly install end-of-stream@1.4.4
2676 info lifecycle end-of-stream@1.4.4~install: end-of-stream@1.4.4
2677 silly install tar-stream@2.1.3
2678 info lifecycle tar-stream@2.1.3~install: tar-stream@2.1.3
2679 silly install inflight@1.0.6
2680 info lifecycle inflight@1.0.6~install: inflight@1.0.6
2681 silly install glob@7.1.6
2682 info lifecycle glob@7.1.6~install: glob@7.1.6
2683 silly install rimraf@2.7.1
2684 info lifecycle rimraf@2.7.1~install: rimraf@2.7.1
2685 silly install pump@3.0.0
2686 info lifecycle pump@3.0.0~install: pump@3.0.0
2687 silly install tar-fs@2.1.0
2688 info lifecycle tar-fs@2.1.0~install: tar-fs@2.1.0
2689 silly install simple-get@3.1.0
2690 info lifecycle simple-get@3.1.0~install: simple-get@3.1.0
2691 silly install prebuild-install@5.3.5
2692 info lifecycle prebuild-install@5.3.5~install: prebuild-install@5.3.5
2693 silly install usb@1.6.3
2694 info lifecycle usb@1.6.3~install: usb@1.6.3
2695 verbose lifecycle usb@1.6.3~install: unsafe-perm in lifecycle false
2696 verbose lifecycle usb@1.6.3~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/usb/node_modules/.bin:/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2697 verbose lifecycle usb@1.6.3~install: CWD: /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/usb
2698 silly lifecycle usb@1.6.3~install: Args: [ '-c', 'prebuild-install --verbose || node-gyp rebuild' ]
2699 silly lifecycle usb@1.6.3~install: Returned: code: 1  signal: null
2700 info lifecycle usb@1.6.3~install: Failed to exec install script
2701 silly install yallist@3.1.1
2702 info lifecycle yallist@3.1.1~install: yallist@3.1.1
2703 silly install minipass@2.9.0
2704 info lifecycle minipass@2.9.0~install: minipass@2.9.0
2705 silly install fs-minipass@1.2.7
2706 info lifecycle fs-minipass@1.2.7~install: fs-minipass@1.2.7
2707 silly install minizlib@1.3.3
2708 info lifecycle minizlib@1.3.3~install: minizlib@1.3.3
2709 silly install tar@4.4.13
2710 info lifecycle tar@4.4.13~install: tar@4.4.13
2711 silly install node-pre-gyp@0.14.0
2712 info lifecycle node-pre-gyp@0.14.0~install: node-pre-gyp@0.14.0
2713 silly install @abandonware/bluetooth-hci-socket@0.5.3-5
2714 info lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: @abandonware/bluetooth-hci-socket@0.5.3-5
2715 verbose lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: unsafe-perm in lifecycle false
2716 verbose lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket/node_modules/.bin:/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2717 verbose lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: CWD: /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket
2718 silly lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: Args: [ '-c', 'node-pre-gyp install --fallback-to-build' ]
2719 silly lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: Returned: code: 1  signal: null
2720 info lifecycle @abandonware/bluetooth-hci-socket@0.5.3-5~install: Failed to exec install script
2721 silly install @abandonware/noble@1.9.2-9
2722 info lifecycle @abandonware/noble@1.9.2-9~install: @abandonware/noble@1.9.2-9
2723 verbose lifecycle @abandonware/noble@1.9.2-9~install: unsafe-perm in lifecycle false
2724 verbose lifecycle @abandonware/noble@1.9.2-9~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble/node_modules/.bin:/usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2725 verbose lifecycle @abandonware/noble@1.9.2-9~install: CWD: /usr/local/lib/node_modules/homebridge-am43-blinds/node_modules/@abandonware/noble
2726 silly lifecycle @abandonware/noble@1.9.2-9~install: Args: [ '-c', 'node-gyp rebuild' ]
2727 silly lifecycle @abandonware/noble@1.9.2-9~install: Returned: code: 1  signal: null
2728 info lifecycle @abandonware/noble@1.9.2-9~install: Failed to exec install script
2729 timing action:install Completed in 4463ms
2730 verbose unlock done using /root/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
2731 timing stage:rollbackFailedOptional Completed in 356ms
2732 timing stage:runTopLevelLifecycles Completed in 31454ms
2733 warn optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 (node_modules/homebridge-am43-blinds/node_modules/usb):
2734 warn optional SKIPPING OPTIONAL DEPENDENCY: usb@1.6.3 install: `prebuild-install --verbose || node-gyp rebuild`
2734 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2735 verbose optional SKIPPING OPTIONAL DEPENDENCY:
2735 verbose optional Failed at the usb@1.6.3 install script.
2735 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
2736 warn optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-5 (node_modules/homebridge-am43-blinds/node_modules/@abandonware/bluetooth-hci-socket):
2737 warn optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-5 install: `node-pre-gyp install --fallback-to-build`
2737 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
2738 verbose optional SKIPPING OPTIONAL DEPENDENCY:
2738 verbose optional Failed at the @abandonware/bluetooth-hci-socket@0.5.3-5 install script.
2738 verbose optional SKIPPING OPTIONAL DEPENDENCY: This is probably not a problem with npm. There is likely additional logging output above.
2739 verbose stack Error: @abandonware/noble@1.9.2-9 install: `node-gyp rebuild`
2739 verbose stack Exit status 1
2739 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
2739 verbose stack     at EventEmitter.emit (events.js:315:20)
2739 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2739 verbose stack     at ChildProcess.emit (events.js:315:20)
2739 verbose stack     at maybeClose (internal/child_process.js:1021:16)
2739 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
2740 verbose pkgid @abandonware/noble@1.9.2-9
2741 verbose cwd /home/pi
2742 verbose Linux 4.19.118-v7l+
2743 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "https://github.com/renssies/homebridge-am43-blinds"
2744 verbose node v12.18.1
2745 verbose npm  v6.14.5
2746 error code ELIFECYCLE
2747 error errno 1
2748 error @abandonware/noble@1.9.2-9 install: `node-gyp rebuild`
2748 error Exit status 1
2749 error Failed at the @abandonware/noble@1.9.2-9 install script.
2749 error This is probably not a problem with npm. There is likely additional logging output above.
2750 verbose exit [ 1, true ]
torroa commented 4 years ago

I got similar issue when trying to install this plugin on my Pi. Use option --unsafe-perm when installing

breitburg commented 4 years ago

Thank you!