node-rolling-spider icon indicating copy to clipboard operation
node-rolling-spider copied to clipboard

NPM installation issue

Open LamnaTheShark opened this issue 7 years ago • 0 comments

Hi, I have issues with rolling spider, here is my console output. I have followed the NoBLE prequisites.

C:\Windows\system32>npm install rolling-spider

> [email protected] install C:\Windows\system32\node_modules\usb
> node-pre-gyp install --fallback-to-build

[usb] Success: "C:\Windows\system32\node_modules\usb\src\binding\usb_bindings.no
de" is installed via remote

> [email protected] install C:\Windows\system32\node_modules\bluetooth-
hci-socket
> node-gyp rebuild


C:\Windows\system32\node_modules\bluetooth-hci-socket>if not defined npm_config_
node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..
\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp: binding.gyp not found (cwd: C:\Windows\system32\node_modules\bluetooth-hci-
socket) 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_module
s\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:198:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Windows\system32\node_modules\bluetooth-hci-socket
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN saveError ENOENT: no such file or directory, open 'C:\Windows\system32\
package.json'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: logitech-dual-action-controller@
git+https://github.com/voodootikigod/node-logitech-dual-action-controller.git (n
ode_modules\rolling-spider\node_modules\logitech-dual-action-controller):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No git binary found in $PATH
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\system32\pac
kage.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modul
es\xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-conne
[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":
"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node
_modules\bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] insta
ll: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ [email protected]
added 32 packages and updated 1 package in 9.342s

C:\Windows\system32>

Note that I tested on my MacBook Air also, it worked but the onboard bluetooth adapter is not compatible with BLE (it's a late 2010)

EDIT : I managed to make it work with a USB bluetooth dongle that was enough recent to support BLE on my macbook air. note that I had to disable the integrated bluetooth with a "nvram bluetoothHostControllerSwitchBehavior=always" command. Managed to test 10 take-off/landings, worked everytime on my mac. Still get the issue on windows, but you can close the issue if you want.

thanks in advance for your answers :)

LamnaTheShark avatar Dec 09 '17 16:12 LamnaTheShark