Closed tfmertz closed 5 years ago
Hello,
I'm running into an error when trying to install bleno through npm install bleno
npm install bleno
npm install bleno > xpc-connection@0.1.4 install /Users/tom/work/ble-perif/node_modules/xpc-connection > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Command failed: /usr/local/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:275:12) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at maybeClose (internal/child_process.js:925:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:346:11) gyp ERR! stack at emitOne (events.js:116:13) gyp ERR! stack at Socket.emit (events.js:211:7) gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:557:12) gyp ERR! System Darwin 16.7.0 gyp ERR! command "/usr/local/bin/node" "/Users/tom/.npm-packages/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/tom/work/ble-perif/node_modules/xpc-connection gyp ERR! node -v v8.11.2 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN saveError ENOENT: no such file or directory, open '/Users/tom/work/ble-perif/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/Users/tom/work/ble-perif/package.json' npm WARN ble-perif No description npm WARN ble-perif No repository field. npm WARN ble-perif No README data npm WARN ble-perif No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for bluetooth-hci-socket@0.5.1: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
I'm running on macOS 10.12.6.
Thanks!
I had a newer version of python installed on my system through homebrew.
I fixed this issue by using python 2.7:
npm install bleno --python=python2.7
Hello,
I'm running into an error when trying to install bleno through
npm install bleno
I'm running on macOS 10.12.6.
Thanks!