Closed zeg-io closed 4 years ago
For reference, I am able to install successfully on macOS 10.15.3 with Node.js v12.16.2:
$ nvm use 12.16.2
Now using node v12.16.2 (npm v6.14.4)
$ node -v
v12.16.2
$ npm install usb-detection
> usb-detection@4.7.0 install /Users/eric/Downloads/usb-detection-install-test1/node_modules/usb-detection
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=x64 libc= platform=darwin)
CXX(target) Release/obj.target/detection/src/detection.o
CXX(target) Release/obj.target/detection/src/deviceList.o
CXX(target) Release/obj.target/detection/src/detection_mac.o
SOLINK_MODULE(target) Release/detection.node
npm WARN usb-detection-install-test1@1.0.0 No description
npm WARN usb-detection-install-test1@1.0.0 No repository field.
+ usb-detection@4.7.0
added 65 packages from 49 contributors and audited 101 packages in 6.481s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
@MadLittleMods it appears that the lockfile has locked node-abi
at an old version, which is causing the prebuild
script to only generate prebuilt binaries up to Node v9. Would you be able to fix this up? I'm personally able to build usb-detection
on Node v12 but the lack of prebuilt binaries is proving to be a problem on CI that I'd rather not deal with (need to build on all three OSs).
I'm also happy to open a PR to bump the prebuild
+ prebuild-install
dependencies (along with updating their nested dependencies in the lockfile), but so far I'm not able to get my local environment to behave to test if prebuild
is still working
Edit: Ended up putting up #106
@mcous Thanks for fixing it up, it looks like the latest Node.js and Electron versions have prebuilds now ❤️
@zeg-io Are you able to install from a prebuild now? (just npm install usb-detection@latest
)
I've been encountering this a lot while on this project. The module will not build. I have the latest command-line tools on MacOS and it still blows up.
Any chance you can fix it?