【问题标题】:Electron-Installer-Windows : Invalid URI: The format of the URI could not be determinedElectron-Installer-Windows:无效的 URI:无法确定 URI 的格式
【发布时间】:2016-09-15 06:28:02
【问题描述】:

我正在尝试创建 .exe 文件,以便能够运行我在 Windows 环境中修复的应用程序。 首先,我使用命令:

electron-packager . app --platform win32 --arch x64 --out dist/  

它创建 dist 文件夹,如下所述: https://github.com/electron-userland/electron-packager 最后,我运行命令:

electron-installer-windows --src ./dist/app-win32-x64 --config config.json/

(如此处所述: https://github.com/unindented/electron-installer-windows)。 config.json 文件包含: { "authors": ["auth"], "dest": "/dist/installers/" }

Invalid URI: The format of the URI could not be determined.

我也看过这个问题:Electron Atom APP : Invalid URI: The format of the URI could not be determined 但它似乎不起作用。 有什么建议吗?谢谢。

【问题讨论】:

  • 我也有同样的问题。我已经尝试应用这个问题1,但它对我没有用。

标签: electron


【解决方案1】:

我认为此错误是由于尝试创建安装程序时路径不正确造成的。

我仍然无法验证这一点,但如果您有 node_modules 文件夹及其嵌套依赖项,并且您的 路径长度超过 260 个字符,这可能就是问题所在。

如果我能够确认或得到解决方案,我会在此处发布。

【讨论】:

    【解决方案2】:

    遇到了同样的问题,通过在 package.json 文件中为作者设置正确的“url”字段得到解决。

    【讨论】:

    • 我也遇到了这个问题,并通过将所有 url 更改为绝对路径来修复它
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-29
    • 2013-12-15
    • 1970-01-01
    相关资源
    最近更新 更多