node.js - 绑定(bind)模块未自行注册

标签 node.js npm

当我尝试运行我的node.js 应用程序时遇到此问题。我尝试删除我的 node_modules 文件夹,然后 npm install 但这不起作用。任何想法?

谢谢!

这是错误:

node_modules/bindings/bindings.js:83
        throw e
        ^

Error: Module did not self-register.
    at Error (native)
    at Object.Module._extensions..node (module.js:440:18)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at bindings (/.../.../react-rpi/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/.../.../react-rpi/node_modules/epoll/epoll.js:1:99)

最佳答案

您可能正在尝试运行未针对您的架构/外围设备进行编译的 native 模块。

请注释掉这些软件包(raspberry-gpiolibusb 等)并尝试从那里解决它。

关于node.js - 绑定(bind)模块未自行注册,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38040653/

相关文章:

node.js - 无法使用nodeJS在ejs中渲染错误页面

arrays - 在 mongoose 中查询数组返回空数组

node.js - 在公司代理 .pac 后面使用 npm

angular - Sweetalert 没有运行,我的 TS 文件出错

node.js - 构建时发出 grunt 警告 (grunt-contrib-compass)

javascript - 在javascript中检测[object Window]的 "Window"部分

css - 如何使用UnCSS

npm - 如何让 npm 使用符合所有要求的最低版本

node.js - Express网关给出404

javascript - 需要 rnpm 链接的 React Native 组件依赖