question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is this supposed to work on macOS?

See original GitHub issue

First of all, great job on that. Big big kudos to y’all! Maybe it was just not designed to work on macOS, but somewhere on the README.m you do mention that if not working on Windows, it might miss some drivers so I thought i’d try on macOS. I did not troubleshoot much this error, I kinda wanted to run it by you first.

node index.js -f outfile.bin

/Users/adrimac/Documents/GitHub/voc-poc/node_modules/bindings/bindings.js:135
  throw err;
  ^

Error: Could not locate the bindings file. Tried:
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/Debug/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/Release/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/out/Debug/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/Debug/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/out/Release/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/Release/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/default/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/compiled/15.7.0/darwin/x64/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/addon-build/release/install-root/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/addon-build/debug/install-root/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/addon-build/default/install-root/usb_bindings.node
 → /Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/lib/binding/node-v88-darwin-x64/usb_bindings.node
    at bindings (/Users/adrimac/Documents/GitHub/voc-poc/node_modules/bindings/bindings.js:126:9)
    at Object.<anonymous> (/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/usb.js:1:57)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:973:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/Users/adrimac/Documents/GitHub/voc-poc/index.js:1:13)
    at Module._compile (node:internal/modules/cjs/loader:1108:14) {
  tries: [
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/Debug/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/Release/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/out/Debug/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/Debug/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/out/Release/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/Release/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/build/default/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/compiled/15.7.0/darwin/x64/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/addon-build/release/install-root/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/addon-build/debug/install-root/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/addon-build/default/install-root/usb_bindings.node',
    '/Users/adrimac/Documents/GitHub/voc-poc/node_modules/usb/lib/binding/node-v88-darwin-x64/usb_bindings.node'
  ]
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
OdoorXcommented, May 12, 2021

@dgtvc dude… thank you so much, you are great!! You solved the problem for every Mac user 😉

Schermata 2021-05-12 alle 10 28 22

1reaction
goodshortcommented, May 12, 2021

@dgtvc Thanks! Alright found my issue It was related to xcode. I recently updated macOS and xcrun was not updated properly I guess. My npm install was running fin. But when trying to do anything else with npm I’d have some errors like below:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Resolution steps:

  1. $ rm -rf node_modules
  2. $ xcode-select --install
  3. $ npm install
Read more comments on GitHub >

github_iconTop Results From Across the Web

Find out which macOS your Mac is using - Apple Support
Use About This Mac to check the version of Mac operating system installed, and find out whether it's the latest (newest, most recent)...
Read more >
macOS Ventura: Everything We Know | MacRumors
macOS Ventura is a significant update that introduces a new multitasking experience, overhauls multiple apps, and adds updated capabilities ...
Read more >
How to Check If You Have the Latest macOS Version
You can see if you're running the latest macOS version by clicking the Apple logo in the top-left corner, then selecting "About This...
Read more >
Never Used a Mac Before? Here's What You Need to Know
Macs are pretty easy to use, but if you're new to them, there are a few things you should know. Read our beginners'...
Read more >
macOS 13 Ventura: These are the Macs that will support the ...
macOS 13 Ventura will bring a new way to work across apps and windows with the Stage Manager feature, which automatically organizes open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found