eliegeorgeskhachan / egk

0 stars 0 forks source link

bluetooth-hci-socket error #1

Open eliegeorgeskhachan opened 6 years ago

eliegeorgeskhachan commented 6 years ago

i get Error: Cannot find module 'bluetooth-hci-socket' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (C:\Users\Lenovo\Downloads\noble-master\noble-master\lib\hci-socket\hci.js:6:26) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)

And when i writ npm install bluetooth-hci-socket , i get :

C:\Users\Lenovo\Downloads\noble-master\noble-master\examples>npm install bluetooth-hci-socket

usb@1.3.1 install C:\Users\Lenovo\Downloads\noble-master\noble-master\node_modules\usb node-pre-gyp install --fallback-to-build

[usb] Success: "C:\Users\Lenovo\Downloads\noble-master\noble-master\node_modules\usb\src\binding\usb_bindings.node" is installed via remote

bluetooth-hci-socket@0.5.1 install C:\Users\Lenovo\Downloads\noble-master\noble-master\node_modules\bluetooth-hci-socket node-gyp rebuild

C:\Users\Lenovo\Downloads\noble-master\noble-master\node_modules\bluetooth-hci-socket>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Windows_NT 10.0.16299 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\Lenovo\Downloads\noble-master\noble-master\node_modules\bluetooth-hci-socket gyp ERR! node -v v8.11.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules\xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bluetooth-hci-socket@0.5.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bluetooth-hci-socket@0.5.1 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! C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2018-05-07T18_20_34_329Z-debug.log

eliegeorgeskhachan commented 5 years ago

Problem solved . I got a low bluetooth voltage usb .