我在电子应用程序中遇到运行时错误以下信息:
dlopen(/Users/joeyzhao/dev/tbc/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node, 1): Symbol not found: _GENERAL_NAME_free
extensionHostProcess.js:621
Referenced from: /Users/joeyzhao/dev/tbc/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node
Expected in: flat namespace
in /Users/joeyzhao/dev/tbc/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node.
我尝试了npm rebuild
,但没有尝试。我也尝试过./node_modules/.bin/electron-rebuild
,但不能解决问题。
我正在使用的节点和电子的版本是:
$ node --version
v8.9.4
$ npm --version
6.4.1
$ yarn --version
1.9.1
"electron-prebuilt": "^1.4.13",
"electron-rebuild": "^1.8.2"