Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jali6065 opened this issue May 13, 2024 · 0 comments
Open

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

jali6065 opened this issue May 13, 2024 · 0 comments

Comments

@jali6065
Copy link

[email protected] install C:\Users\DELL\Desktop\new_noble\noble\node_modules\usb
node-gyp-build

@abandonware/[email protected] 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/[email protected] and [email protected] (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/[email protected] install C:\Users\DELL\Desktop\new_noble\noble
node-gyp-build

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/[email protected] (node_modules@abandonware\bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/[email protected] 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

[email protected] install C:\Users\DELL\Desktop\new_noble\noble\node_modules\usb
node-gyp-build

@abandonware/[email protected] 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/[email protected] and [email protected] (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/[email protected] install C:\Users\DELL\Desktop\new_noble\noble
node-gyp-build

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/[email protected] (node_modules@abandonware\bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/[email protected] 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant