微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我对 nodejs usb 模块有些好奇

如何解决我对 nodejs usb 模块有些好奇

> usb@0.3.11 install /node_modules/usb
> node shyp-blacklist.js win32-x64 win32-ia32 darwin-x64 || node-gyp rebuild

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 --libs' returned exit status 1.
gyp ERR! configure error
gyp ERR! stack Error: `gyp` Failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/server/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 2.6.32-573.18.1.el6.x86_64
gyp ERR! command "node" "/usr/local/server/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/usb
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! usb@0.3.11 install: `node shyp-blacklist.js win32-x64 win32-ia32 darwin-x64 || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usb@0.3.11 install script.
npm ERR! This is most likely a problem with the usb package,npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node shyp-blacklist.js win32-x64 win32-ia32 darwin-x64 || node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls usb
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-573.18.1.el6.x86_64
npm ERR! command "/usr/local/server/nodejs/bin/node" "/usr/local/server/nodejs/bin/npm" "i" "usb@0.3.11"
npm ERR! cwd /
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /npm-debug.log
npm ERR! not ok code 0

我不知道那是什么意思!任何帮助,将不胜感激!例如,找不到 pkg_config 搜索路径。因为找不到'libusb-1.0'路径,我在徘徊。

很少

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。