solokeys / solo-desktop

Desktop app for customizing and updating your Solo.
MIT License
71 stars 14 forks source link

Package libusb-1.0 was not found in the pkg-config search path. #24

Open eMPee584 opened 4 years ago

eMPee584 commented 4 years ago

After checking out this repo (including submodules: libusb is properly checked out in node_modules/usb/libusb) on debian sid and issuing npm i, it aborts on the following error:

prebuild-install WARN install No prebuilt binaries found (target=12.18.4 runtime=node arch=x64 libc= platform=linux)
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
gyp: Call to 'pkg-config libusb-1.0 --cflags-only-I | sed s/-I//g' returned exit status 0 while in binding.gyp. 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 (/usr/share/nodejs/node-gyp/lib/configure.js:354:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.8.0-1-amd64
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/src/repos/solo-desktop/node_modules/node-hid
gyp ERR! node -v v12.18.4
gyp ERR! node-gyp -v v7.0.0
gyp ERR! not ok 
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/glob-watcher/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-hid@1.3.1 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-hid@1.3.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Full log : 2020-10-07T16_07_52_199Z-debug.log

Did I do something wrong? :sweat_smile: