未捕获错误:模块未自行注册 [英] Uncaught Error: Module did not self-register
问题描述
我尝试将node-vlc与nw.js(v0.12.0-alpha2)一起使用。当我在没有nw.js的情况下启动我的应用程序时,它可以工作,但是当我使用nw.js启动它时出现错误:
I try to use node-vlc with nw.js (v0.12.0-alpha2). When i launch my app without nw.js it works, but when i launch it with nw.js i got an error:
未捕获错误:模块没有自行注册。,来源:/home/alexis/Bureau/dev/jukebox/node_modules/vlc/node_modules/ffi/node_modules/bindings/bindings.js(84)
Uncaught Error: Module did not self-register.", source: /home/alexis/Bureau/dev/jukebox/node_modules/vlc/node_modules/ffi/node_modules/bindings/bindings.js (84)
我用nw-gyp尝试了一些命令,但它无法帮助我。
我在Ubuntu 14,64位上。
I tried some commands with nw-gyp but it couldn't help me. I am on Ubuntu 14, 64-bit.
推荐答案
如果您已升级节点,那么 npm rebuild
可能会为您解决此问题
If you've upgraded node then npm rebuild
might fix this for you
这篇关于未捕获错误:模块未自行注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!