gpt4 book ai didi

javascript - 未捕获的node.js错误, undefined symbol : _ZN2v811HandleScopeC1Ev

转载 作者:太空宇宙 更新时间:2023-11-04 02:32:46 24 4
gpt4 key购买 nike

我正在尝试将 PouchDB 与 node-webkit 一起使用。其中又是一个node_module。到目前为止我能理解的是node-gyp可能不兼容,试图加载第3方node_modules(PouchDB)。

注意:我还在node-webkit中使用nodejs virtualenv。

当我在脚本中使用 var PouchDB = require('pouchdb'); 时,会引发以下错误。

Error: /home/manjunath/node/node_modules/pouchdb/node_modules/leveldown/build/Release/leveldown.node: undefined symbol: _ZN2v811HandleScopeC1Ev at Error (native) at Module.load (module.js:352:32) at Function.Module._load (module.js:308:12) at Module.require (module.js:360:17) at require (module.js:376:17) at bindings (/home/manjunath/node/node_modules/pouchdb/node_modules/leveldown/node_modules/bindings/bindings.js:76:44) at Object. (/home/manjunath/node/node_modules/pouchdb/node_modules/leveldown/index.js:1:99) at Module._compile (module.js:452:26) at Object.Module._extensions..js (module.js:470:10) at Module.load (module.js:352:32) at Function.Module._load (module.js:308:12)

我没有办法摆脱这个问题,请帮助我!

最佳答案

您必须使用nw-gyp编译用于 node-webkit 的插件。请参阅this了解更多信息。

关于javascript - 未捕获的node.js错误, undefined symbol : _ZN2v811HandleScopeC1Ev,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25090479/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com