Open trougnouf opened 1 year ago
Same issue here with node-gyp v9.3.1 Does anybody know how to approach this issue?
Same issue here with node v12.22.9
I ended up using
"@abandonware/bluetooth-hci-socket": "^0.5.3-10",
"@abandonware/noble": "^1.9.2-23",
npm installation fails on Arch Linux. I've tried with nodejs versions (19.1.0, 14.21, 16.18) and I have node-gyp 9.3.0 installed
Terminal output:
``` [trougnouf@d]: ~>$ npm install -g bluetooth-hci-socket npm ERR! code 1 npm ERR! path /home/trougnouf/.local/lib/node_modules/bluetooth-hci-socket npm ERR! command failed npm ERR! command sh -c -- node-gyp rebuild npm ERR! make: Entering directory '/home/trougnouf/.local/lib/node_modules/bluetooth-hci-socket/build' npm ERR! CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o npm ERR! make: Leaving directory '/home/trougnouf/.local/lib/node_modules/bluetooth-hci-socket/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.3.0 npm ERR! gyp info using node@19.1.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.10.8 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/trougnouf/.local/lib/node_modules/bluetooth-hci-socket/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/trougnouf/.cache/node-gyp/19.1.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/trougnouf/.cache/node-gyp/19.1.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/trougnouf/.cache/node-gyp/19.1.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/trougnouf/.local/lib/node_modules/bluetooth-hci-socket', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ npm ERR! 128 | target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! In file included from /home/trougnouf/.cache/node-gyp/19.1.0/include/node/v8-function.h:15, npm ERR! from /home/trougnouf/.cache/node-gyp/19.1.0/include/node/v8.h:33, npm ERR! from /home/trougnouf/.cache/node-gyp/19.1.0/include/node/node.h:73, npm ERR! from /home/trougnouf/.cache/node-gyp/19.1.0/include/node/node_buffer.h:25, npm ERR! from ../src/BluetoothHciSocket.cpp:7: npm ERR! /home/trougnouf/.cache/node-gyp/19.1.0/include/node/v8-template.h:495:46: note: candidate: ‘v8::MaybeLocaland the content of the log file:
``` 0 verbose cli /usr/bin/node /usr/bin/npm 1 info using npm@8.19.2 2 info using node@v16.18.0 3 timing npm:load:whichnode Completed in 0ms 4 timing config:load:defaults Completed in 1ms 5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms 6 timing config:load:builtin Completed in 1ms 7 timing config:load:cli Completed in 3ms 8 timing config:load:env Completed in 0ms 9 timing config:load:project Completed in 1ms 10 timing config:load:file:/home/trougnouf/.npmrc Completed in 2ms 11 timing config:load:user Completed in 2ms 12 timing config:load:file:/home/trougnouf/.local/etc/npmrc Completed in 1ms 13 timing config:load:global Completed in 1ms 14 timing config:load:validate Completed in 0ms 15 timing config:load:credentials Completed in 0ms 16 timing config:load:setEnvs Completed in 0ms 17 timing config:load Completed in 11ms 18 timing npm:load:configload Completed in 11ms 19 timing npm:load:mkdirpcache Completed in 3ms 20 timing npm:load:mkdirplogs Completed in 0ms 21 verbose title npm install bluetooth-hci-socket 22 verbose argv "install" "--global" "bluetooth-hci-socket" 23 timing npm:load:setTitle Completed in 1ms 24 timing config:load:flatten Completed in 2ms 25 timing npm:load:display Completed in 3ms 26 verbose logfile logs-max:10 dir:/home/trougnouf/.npm/_logs 27 verbose logfile /home/trougnouf/.npm/_logs/2022-11-22T14_03_22_288Z-debug-0.log 28 timing npm:load:logFile Completed in 3ms 29 timing npm:load:timers Completed in 0ms 30 timing npm:load:configScope Completed in 0ms 31 timing npm:load Completed in 22ms 32 timing arborist:ctor Completed in 0ms 33 silly logfile start cleaning logs, removing 1 files 34 timing idealTree:init Completed in 4ms 35 timing idealTree:userRequests Completed in 2ms 36 silly idealTree buildDeps 37 silly fetch manifest bluetooth-hci-socket@* 38 silly logfile done cleaning log files 39 http fetch GET 200 https://registry.npmjs.org/bluetooth-hci-socket 11ms (cache hit) 40 silly placeDep ROOT bluetooth-hci-socket@0.5.1 OK for: want: * 41 silly fetch manifest debug@^2.2.0 42 silly fetch manifest nan@^2.0.5 43 silly fetch manifest usb@^1.1.0 44 http fetch GET 200 https://registry.npmjs.org/debug 8ms (cache hit) 45 http fetch GET 200 https://registry.npmjs.org/nan 11ms (cache hit) 46 http fetch GET 200 https://registry.npmjs.org/usb 14ms (cache hit) 47 timing idealTree:#root Completed in 41ms 48 silly placeDep node_modules/bluetooth-hci-socket debug@2.6.9 OK for: bluetooth-hci-socket@0.5.1 want: ^2.2.0 49 silly placeDep node_modules/bluetooth-hci-socket nan@2.17.0 OK for: bluetooth-hci-socket@0.5.1 want: ^2.0.5 50 silly placeDep node_modules/bluetooth-hci-socket usb@1.9.2 OK for: bluetooth-hci-socket@0.5.1 want: ^1.1.0 51 silly fetch manifest ms@2.0.0 52 silly fetch manifest node-addon-api@^4.2.0 53 silly fetch manifest node-gyp-build@^4.3.0 54 http fetch GET 200 https://registry.npmjs.org/ms 6ms (cache hit) 55 http fetch GET 200 https://registry.npmjs.org/node-gyp-build 6ms (cache hit) 56 http fetch GET 200 https://registry.npmjs.org/node-addon-api 9ms (cache hit) 57 timing idealTree:node_modules/bluetooth-hci-socket Completed in 14ms 58 silly placeDep node_modules/bluetooth-hci-socket ms@2.0.0 OK for: debug@2.6.9 want: 2.0.0 59 timing idealTree:node_modules/bluetooth-hci-socket/node_modules/debug Completed in 1ms 60 timing idealTree:node_modules/bluetooth-hci-socket/node_modules/ms Completed in 0ms 61 timing idealTree:node_modules/bluetooth-hci-socket/node_modules/nan Completed in 0ms 62 silly placeDep node_modules/bluetooth-hci-socket node-addon-api@4.3.0 OK for: usb@1.9.2 want: ^4.2.0 63 silly placeDep node_modules/bluetooth-hci-socket node-gyp-build@4.5.0 OK for: usb@1.9.2 want: ^4.3.0 64 timing idealTree:node_modules/bluetooth-hci-socket/node_modules/usb Completed in 5ms 65 timing idealTree:node_modules/bluetooth-hci-socket/node_modules/node-addon-api Completed in 0ms 66 timing idealTree:node_modules/bluetooth-hci-socket/node_modules/node-gyp-build Completed in 0ms 67 timing idealTree:buildDeps Completed in 62ms 68 timing idealTree:fixDepFlags Completed in 1ms 69 timing idealTree Completed in 69ms 70 timing reify:loadTrees Completed in 70ms 71 timing reify:diffTrees Completed in 1ms 72 silly reify moves {} 73 timing reify:retireShallow Completed in 1ms 74 timing reify:createSparse Completed in 1ms 75 timing reify:loadBundles Completed in 0ms 76 silly audit bulk request { 76 silly audit 'bluetooth-hci-socket': [ '0.5.1' ], 76 silly audit debug: [ '2.6.9' ], 76 silly audit nan: [ '2.17.0' ], 76 silly audit usb: [ '1.9.2' ], 76 silly audit ms: [ '2.0.0' ], 76 silly audit 'node-addon-api': [ '4.3.0' ], 76 silly audit 'node-gyp-build': [ '4.5.0' ] 76 silly audit } 77 timing reifyNode:node_modules/bluetooth-hci-socket/node_modules/ms Completed in 94ms 78 timing reifyNode:node_modules/bluetooth-hci-socket/node_modules/node-gyp-build Completed in 96ms 79 timing reifyNode:node_modules/bluetooth-hci-socket Completed in 102ms 80 timing reifyNode:node_modules/bluetooth-hci-socket/node_modules/debug Completed in 101ms 81 timing reifyNode:node_modules/bluetooth-hci-socket/node_modules/node-addon-api Completed in 106ms 82 timing reifyNode:node_modules/bluetooth-hci-socket/node_modules/nan Completed in 110ms 83 timing reifyNode:node_modules/bluetooth-hci-socket/node_modules/usb Completed in 162ms 84 timing reify:unpack Completed in 163ms 85 timing reify:unretire Completed in 0ms 86 timing build:queue Completed in 1ms 87 timing build:link:node_modules/bluetooth-hci-socket/node_modules/node-gyp-build Completed in 2ms 88 timing build:link Completed in 2ms 89 info run bluetooth-hci-socket@0.5.1 install node_modules/bluetooth-hci-socket node-gyp rebuild 90 info run usb@1.9.2 install node_modules/bluetooth-hci-socket/node_modules/usb node-gyp-build 91 info run usb@1.9.2 install { code: 0, signal: null } 92 timing build:run:install:node_modules/bluetooth-hci-socket/node_modules/usb Completed in 99ms 93 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 666ms 94 timing auditReport:getReport Completed in 668ms 95 silly audit report {} 96 timing auditReport:init Completed in 0ms 97 timing reify:audit Completed in 669ms 98 info run bluetooth-hci-socket@0.5.1 install { code: 1, signal: null } 99 timing reify:rollback:createSparse Completed in 52ms 100 timing reify:rollback:retireShallow Completed in 0ms 101 timing command:install Completed in 1610ms 102 verbose stack Error: command failed 102 verbose stack at ChildProcess.