【问题标题】:Edgejs with node application not running on Mac computer带有节点应用程序的 Edgejs 未在 Mac 计算机上运行
【发布时间】:2018-09-08 20:26:36
【问题描述】:

我有节点应用程序使用 Edgejs 模块来运行一些 .net dll。我的应用程序在 Windows 机器上运行,但在 Mac 计算机上运行相同的应用程序时出现以下错误:

CoreClrEmbedenter code hereding::Initialize - 无法解决 CoreCLR 路径。有关更多详细信息,请通过设置启用跟踪 COREHOST_TRACE 环境变量为 1 module.js:664

  return process.dlopen(module, path._makeLong(filename));
                 ^

错误:这不是一个已发布的独立应用程序,我们是 无法找到 .NET Core SDK。请确保它是 已安装;有关更多信息,请参阅http://microsoft.com/net/core 在 Object.node_modules/edge-js/lib/edge.js:54:8)

【问题讨论】:

    标签: .net node.js npm .net-4.5 edgejs


    【解决方案1】:

    您是否确保您的 Mac 已按照 https://github.com/tjanczuk/edge/tree/master#scripting-clr-from-nodejs 正确配置?

    【讨论】:

    • 我尝试了上面链接中给出的所有可能的选项,但仍然出现错误。 CoreClrEmbedding::Initialize - 初始化 CoreCLR 失败,HRESULT: 0x80070057 /Users/code/node_modules/edge-js/lib/edge.js:179 return edge.initializeClrFunc(options); ^ TypeError: edge.initializeClrFunc 不是函数
    • 快速搜索您的问题,github 上的一些人似乎已经修复了它,看来您的环境配置不正确github.com/agracio/electron-edge-js-quick-start/issues/5
    猜你喜欢
    • 2015-01-04
    • 2020-05-17
    • 1970-01-01
    • 1970-01-01
    • 2018-02-14
    • 1970-01-01
    • 1970-01-01
    • 2017-04-03
    • 1970-01-01
    相关资源
    最近更新 更多