0 verbose cli /opt/homebridge/bin/node /opt/homebridge/bin/npm 1 info using npm@8.15.0 2 info using node@v16.17.0 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 4ms 5 timing config:load:file:/opt/homebridge/lib/node_modules/npm/npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 5ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:/var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/.npmrc Completed in 0ms 10 timing config:load:project Completed in 6ms 11 timing config:load:file:/home/homebridge/.npmrc Completed in 0ms 12 timing config:load:user Completed in 0ms 13 timing config:load:file:/opt/homebridge/etc/npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:validate Completed in 2ms 16 timing config:load:credentials Completed in 2ms 17 timing config:load:setEnvs Completed in 2ms 18 timing config:load Completed in 29ms 19 timing npm:load:configload Completed in 30ms 20 timing npm:load:mkdirpcache Completed in 2ms 21 timing npm:load:mkdirplogs Completed in 1ms 22 verbose title npm rebuild 23 verbose argv "rebuild" "--foreground-scripts" 24 timing npm:load:setTitle Completed in 3ms 25 timing config:load:flatten Completed in 8ms 26 timing npm:load:display Completed in 13ms 27 verbose logfile logs-max:10 dir:/home/homebridge/.npm/_logs 28 verbose logfile /home/homebridge/.npm/_logs/2022-08-21T06_56_29_279Z-debug-0.log 29 timing npm:load:logFile Completed in 13ms 30 timing npm:load:timers Completed in 0ms 31 timing npm:load:configScope Completed in 0ms 32 timing npm:load Completed in 65ms 33 timing arborist:ctor Completed in 2ms 34 silly logfile start cleaning logs, removing 1 files 35 silly logfile done cleaning log files 36 timing build:queue Completed in 13ms 37 timing build:link:node_modules/@mapbox/node-pre-gyp Completed in 7ms 38 timing build:link:node_modules/color-support Completed in 6ms 39 timing build:link:node_modules/google-p12-pem Completed in 5ms 40 timing build:link:node_modules/mkdirp Completed in 5ms 41 timing build:link:node_modules/mqtt Completed in 6ms 42 timing build:link:node_modules/node-gyp-build Completed in 5ms 43 timing build:link:node_modules/nopt Completed in 5ms 44 timing build:link:node_modules/rimraf Completed in 4ms 45 timing build:link:node_modules/semver Completed in 4ms 46 timing build:link:node_modules/uuid Completed in 5ms 47 timing build:link:node_modules/make-dir/node_modules/semver Completed in 4ms 48 timing build:link Completed in 9ms 49 info run @abandonware/bluetooth-hci-socket@0.5.3-8 install node_modules/@abandonware/bluetooth-hci-socket node-pre-gyp install --fallback-to-build 50 info run @abandonware/bluetooth-hci-socket@0.5.3-8 install { code: 1, signal: null } 51 timing command:rebuild Completed in 7977ms 52 verbose stack Error: command failed 52 verbose stack at ChildProcess. (/opt/homebridge/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:63:27) 52 verbose stack at ChildProcess.emit (node:events:513:28) 52 verbose stack at maybeClose (node:internal/child_process:1093:16) 52 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) 53 verbose pkgid @abandonware/bluetooth-hci-socket@0.5.3-8 54 verbose cwd /var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot 55 verbose Linux 5.15.32-v7l+ 56 verbose node v16.17.0 57 verbose npm v8.15.0 58 error code 1 59 error path /var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/node_modules/@abandonware/bluetooth-hci-socket 60 error command failed 61 error command sh /tmp/install-6602056e.sh 62 verbose exit 1 63 timing npm Completed in 8215ms 64 verbose unfinished npm timer build 1661064989937 65 verbose unfinished npm timer build:deps 1661064989937 66 verbose unfinished npm timer build:run:install 1661064989961 67 verbose unfinished npm timer build:run:install:node_modules/@abandonware/bluetooth-hci-socket 1661064989962 68 verbose code 1 69 error A complete log of this run can be found in: 69 error /home/homebridge/.npm/_logs/2022-08-21T06_56_29_279Z-debug-0.log