abandonware / node-bluetooth-hci-socket

MIT License
42 stars 47 forks source link

windows install issue -- bluetooth-hci-socket #59

Open jali6065 opened 2 months ago

jali6065 commented 2 months ago

usb@2.12.1 install C:\Users\DELL\Desktop\new_noble\noble\node_modules\usb node-gyp-build

@abandonware/bluetooth-hci-socket@0.5.3-11 install C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket node-pre-gyp install --fallback-to-build --update-binary

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-11/bluetooth_hci_socket-0.5.3-11-node-v83-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not installable for @abandonware/bluetooth-hci-socket@0.5.3-11 and node@14.21.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-11/bluetooth_hci_socket-0.5.3-11-node-v83-win32-x64.tar.gz Traceback (most recent call last): File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 50, in sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init.py", line 554, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init__.py", line 547, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\init__.py", line 520, in gyp_main [generator, flat_list, targets, data] = Load(

^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init__.py", line 136, in Load result = gyp.input.Load(build_files, default_variables, includes[:], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 2782, in Load LoadTargetBuildFile(build_file, data, aux_data, File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 391, in LoadTargetBuildFile
build_file_data = LoadOneBuildFile(build_file_path, data, aux_data, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 234, in LoadOneBuildFile
build_file_contents = open(build_file_path, 'rU').read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node" "--module_name=bluetooth_hci_socket" "--module_path=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" "--python=C:\Users\DELL\AppData\Local\Programs\Python\Python311\python.exe" gyp ERR! cwd C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket gyp ERR! node -v v14.21.3 gyp ERR! node-gyp -v v5.1.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83 --python=C:\Users\DELL\AppData\Local\Programs\Python\Python311\python.exe' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\DELL\Desktop\new_noble\noble\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1088:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) node-pre-gyp ERR! System Windows_NT 10.0.19045 node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\DELL\Desktop\new_noble\noble\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
node-pre-gyp ERR! cwd C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket node-pre-gyp ERR! node -v v14.21.3 node-pre-gyp ERR! node-pre-gyp -v v1.0.11
node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83 --python=C:\Users\DELL\AppData\Local\Programs\Python\Python311\python.exe' (1)

@abandonware/noble@1.9.2-25 install C:\Users\DELL\Desktop\new_noble\noble node-gyp-build

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-11 (node_modules\@abandonware\bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-11 install: node-pre-gyp install --fallback-to-build --update-binary npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 667 packages in 11.047s

107 packages are looking for funding run npm fund for details

found 9 vulnerabilities (8 moderate, 1 high) run npm audit fix to fix them, or npm audit for details

C:\Users\DELL\Desktop\new_noble\noble>node test.js
noble on -> stateChange: unsupported ^C C:\Users\DELL\Desktop\new_noble\noble>npm install

usb@2.12.1 install C:\Users\DELL\Desktop\new_noble\noble\node_modules\usb node-gyp-build

@abandonware/bluetooth-hci-socket@0.5.3-11 install C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket node-pre-gyp install --fallback-to-build --update-binary

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-11/bluetooth_hci_socket-0.5.3-11-node-v83-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not installable for @abandonware/bluetooth-hci-socket@0.5.3-11 and node@14.21.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-11/bluetooth_hci_socket-0.5.3-11-node-v83-win32-x64.tar.gz Traceback (most recent call last): File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 50, in sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init.py", line 554, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp__init__.py", line 547, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\init.py", line 520, in gyp_main [generator, flat_list, targets, data] = Load( ^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\init__.py", line 136, in Load result = gyp.input.Load(build_files, default_variables, includes[:], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 2782, in Load LoadTargetBuildFile(build_file, data, aux_data, File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 391, in LoadTargetBuildFile build_file_data = LoadOneBuildFile(build_file_path, data, aux_data, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 234, in LoadOneBuildFile build_file_contents = open(build_file_path, 'rU').read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) gyp ERR! System Windows_NT 10.0.19045 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node" "--module_name=bluetooth_hci_socket" "--module_path=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" "--python=C:\Users\DELL\AppData\Local\Programs\Python\Python311\python.exe" gyp ERR! cwd C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket gyp ERR! node -v v14.21.3 gyp ERR! node-gyp -v v5.1.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83 --python=C:\Users\DELL\AppData\Local\Programs\Python\Python311\python.exe' (1) node-pre-gyp ERR! stack at ChildProcess. (C:\Users\DELL\Desktop\new_noble\noble\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1088:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) node-pre-gyp ERR! System Windows_NT 10.0.19045 node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\DELL\Desktop\new_noble\noble\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--update-binary" node-pre-gyp ERR! cwd C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket node-pre-gyp ERR! node -v v14.21.3 node-pre-gyp ERR! node-pre-gyp -v v1.0.11 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding\bluetooth_hci_socket.node --module_name=bluetooth_hci_socket --module_path=C:\Users\DELL\Desktop\new_noble\noble\node_modules\@abandonware\bluetooth-hci-socket\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83 --python=C:\Users\DELL\AppData\Local\Programs\Python\Python311\python.exe' (1)

@abandonware/noble@1.9.2-25 install C:\Users\DELL\Desktop\new_noble\noble node-gyp-build

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-11 (node_modules\@abandonware\bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@0.5.3-11 install: node-pre-gyp install --fallback-to-build --update-binary npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 658 packages in 11.01s