我建立了一个电子项目,完成后想向应用程序添加git支持。 我尝试通过将NodeGit添加到我的项目来添加它。 简单
npm install nodegit
仅使用
创建文件git.jsvar NodeGit = require("nodegit");
我通过
运行脚本<script id="git" src="assets/scripts/git.js"></script>
不幸的是,当我尝试运行程序时,出现错误:
dyld: lazy symbol binding failed: Symbol not found: _OPENSSL_init_crypto
Referenced from: /[PATH TO PROJECT]/node_modules/nodegit/build/Release/nodegit.node
Expected in: flat namespace
dyld: Symbol not found: _OPENSSL_init_crypto
Referenced from: /[PATH TO PROJECT]/node_modules/nodegit/build/Release/nodegit.node
Expected in: flat namespace
[11635:0118/162433.596391:ERROR:gles2_cmd_decoder.cc(18047)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[11635:0118/162433.596514:ERROR:gles2_cmd_decoder.cc(12520)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[11635:0118/162433.596556:ERROR:gles2_cmd_decoder.cc(18047)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[11635:0118/162433.596638:ERROR:gles2_cmd_decoder.cc(12520)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[11635:0118/162433.596677:ERROR:gles2_cmd_decoder.cc(18047)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[11635:0118/162433.596702:ERROR:gles2_cmd_decoder.cc(12520)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[11635:0118/162433.596730:ERROR:gles2_cmd_decoder.cc(18047)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[11635:0118/162433.596753:ERROR:gles2_cmd_decoder.cc(12520)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[11635:0118/162433.596894:ERROR:gles2_cmd_decoder.cc(18047)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[11635:0118/162433.596933:ERROR:gles2_cmd_decoder.cc(12520)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[11635:0118/162433.596964:ERROR:gles2_cmd_decoder.cc(18047)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[11635:0118/162433.597001:ERROR:gles2_cmd_decoder.cc(12520)] [.BrowserCompositor-0x7f996303c600]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
我尝试删除node_modules文件夹并再次安装npm。 我尝试npm rebuild到。 当我放置“ node -v”时,我有
V10.15.0
有什么方法可以解决此问题,或者以其他方式向电子应用程序添加git支持?
感谢您的回答! :)